summaryrefslogtreecommitdiff
path: root/src/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-03-17 02:18:46 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-03-17 02:18:46 -0400
commitd7b8095c3db345329cf89b8c00d51817ae4ce4c9 (patch)
tree5cdd04a952eb43d2a65d1b59c9808f38a115f805 /src/textual.cc
parent0e34d08b8d9100a59e8d457cbe7343462a4d8739 (diff)
downloadfork-ledger-d7b8095c3db345329cf89b8c00d51817ae4ce4c9.tar.gz
fork-ledger-d7b8095c3db345329cf89b8c00d51817ae4ce4c9.tar.bz2
fork-ledger-d7b8095c3db345329cf89b8c00d51817ae4ce4c9.zip
Tags were not being set properly on postings
Diffstat (limited to 'src/textual.cc')
-rw-r--r--src/textual.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/textual.cc b/src/textual.cc
index 6a8ea62e..0a2166f8 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -1199,7 +1199,7 @@ post_t * instance_t::parse_post(char * line,
// Parse the optional note
if (next && *next == ';') {
- post->append_note(++next, current_year);
+ post->append_note(++next, true, current_year);
next = line + len;
DEBUG("textual.parse", "line " << linenum << ": "
<< "Parsed a posting note");
@@ -1218,7 +1218,7 @@ post_t * instance_t::parse_post(char * line,
if (! context.state_stack.empty()) {
foreach (const state_t& state, context.state_stack)
if (state.type() == typeid(string))
- post->parse_tags(boost::get<string>(state).c_str());
+ post->parse_tags(boost::get<string>(state).c_str(), true);
}
TRACE_STOP(post_details, 1);
@@ -1355,7 +1355,7 @@ xact_t * instance_t::parse_xact(char * line,
item = xact.get();
// This is a trailing note, and possibly a metadata info tag
- item->append_note(p + 1, current_year);
+ item->append_note(p + 1, true, current_year);
item->pos->end_pos = curr_pos;
item->pos->end_line++;
} else {
@@ -1389,7 +1389,7 @@ xact_t * instance_t::parse_xact(char * line,
if (! context.state_stack.empty()) {
foreach (const state_t& state, context.state_stack)
if (state.type() == typeid(string))
- xact->parse_tags(boost::get<string>(state).c_str());
+ xact->parse_tags(boost::get<string>(state).c_str(), false);
}
TRACE_STOP(xact_details, 1);