summaryrefslogtreecommitdiff
path: root/src/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-02-26 02:18:22 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-02-26 02:18:22 -0600
commit4cf95497f9afaead3d9d308dabe8e8b26949502f (patch)
tree99ea35c41def6930cfe4fe56711752e5366a175f /src/textual.cc
parent40ab81308025e9655074da37671c444b4257f867 (diff)
downloadfork-ledger-4cf95497f9afaead3d9d308dabe8e8b26949502f.tar.gz
fork-ledger-4cf95497f9afaead3d9d308dabe8e8b26949502f.tar.bz2
fork-ledger-4cf95497f9afaead3d9d308dabe8e8b26949502f.zip
Keep notes on their own line if parsed that way
Diffstat (limited to 'src/textual.cc')
-rw-r--r--src/textual.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/textual.cc b/src/textual.cc
index c7c49e2a..ddbd9943 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -577,6 +577,7 @@ void instance_t::automated_xact_directive(char * line)
// This is a trailing note, and possibly a metadata info tag
item->append_note(p + 1, context.scope, true);
+ item->add_flags(ITEM_NOTE_ON_NEXT_LINE);
item->pos->end_pos = curr_pos;
item->pos->end_line++;
@@ -1529,6 +1530,7 @@ xact_t * instance_t::parse_xact(char * line,
if (*p == ';') {
// This is a trailing note, and possibly a metadata info tag
item->append_note(p + 1, context.scope, true);
+ item->add_flags(ITEM_NOTE_ON_NEXT_LINE);
item->pos->end_pos = curr_pos;
item->pos->end_line++;
}