diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-01 04:36:56 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:35 -0400 |
commit | e70b80d6fe1ed6da6812eb3f4c77570a18eb2bf3 (patch) | |
tree | 6d02fc08132dba1e64a2807cfccf431ef88c2976 /src/textual.cc | |
parent | e92bcf411d2e9a55969303ba3893a017152d7c18 (diff) | |
download | ledger-e70b80d6fe1ed6da6812eb3f4c77570a18eb2bf3.tar.gz ledger-e70b80d6fe1ed6da6812eb3f4c77570a18eb2bf3.tar.bz2 ledger-e70b80d6fe1ed6da6812eb3f4c77570a18eb2bf3.zip |
Got tracing code working again.
Diffstat (limited to 'src/textual.cc')
-rw-r--r-- | src/textual.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/textual.cc b/src/textual.cc index 7d1d224e..9c9c931f 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -690,8 +690,7 @@ unsigned int textual_parser_t::parse(std::istream& in, i != time_entries.end(); i++) if (event.account == (*i).account) - throw_(parse_error, - "Cannot double check-in to the same account"); + throw_(parse_error, "Cannot double check-in to the same account"); time_entries.push_back(event); break; @@ -839,9 +838,12 @@ unsigned int textual_parser_t::parse(std::istream& in, push_var<unsigned long> save_end_pos(end_pos); push_var<unsigned int> save_linenum(linenum); - pathname = resolve_path(pathname); + if (*p != '~' && *p != '/') + pathname = (pathname.branch_path() / path(p)).normalize(); + else + pathname = resolve_path(p); - DEBUG("ledger.textual.include", "line " << linenum << ": " << + DEBUG("ledger.textual.include", "Line " << linenum << ": " << "Including path '" << pathname.string() << "'"); include_stack.push_back |