diff options
author | John Wiegley <johnw@newartisans.com> | 2012-02-26 02:18:22 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-02-26 02:18:22 -0600 |
commit | 4cf95497f9afaead3d9d308dabe8e8b26949502f (patch) | |
tree | 99ea35c41def6930cfe4fe56711752e5366a175f /src/item.h | |
parent | 40ab81308025e9655074da37671c444b4257f867 (diff) | |
download | fork-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/item.h')
-rw-r--r-- | src/item.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -100,9 +100,10 @@ private: class item_t : public supports_flags<uint_least16_t>, public scope_t { public: -#define ITEM_NORMAL 0x00 // no flags at all, a basic posting -#define ITEM_GENERATED 0x01 // posting was not found in a journal -#define ITEM_TEMP 0x02 // posting is a managed temporary +#define ITEM_NORMAL 0x00 // no flags at all, a basic posting +#define ITEM_GENERATED 0x01 // posting was not found in a journal +#define ITEM_TEMP 0x02 // posting is a managed temporary +#define ITEM_NOTE_ON_NEXT_LINE 0x04 // did we see a note on the next line? enum state_t { UNCLEARED = 0, CLEARED, PENDING }; @@ -117,7 +118,8 @@ public: optional<string_map> metadata; item_t(flags_t _flags = ITEM_NORMAL, const optional<string>& _note = none) - : supports_flags<uint_least16_t>(_flags), _state(UNCLEARED), note(_note) + : supports_flags<uint_least16_t>(_flags), _state(UNCLEARED), + note(_note) { TRACE_CTOR(item_t, "flags_t, const string&"); } |