From 4cf95497f9afaead3d9d308dabe8e8b26949502f Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 26 Feb 2012 02:18:22 -0600 Subject: Keep notes on their own line if parsed that way --- src/item.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/item.h') diff --git a/src/item.h b/src/item.h index 79d2f23b..908dd1b8 100644 --- a/src/item.h +++ b/src/item.h @@ -100,9 +100,10 @@ private: class item_t : public supports_flags, 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 metadata; item_t(flags_t _flags = ITEM_NORMAL, const optional& _note = none) - : supports_flags(_flags), _state(UNCLEARED), note(_note) + : supports_flags(_flags), _state(UNCLEARED), + note(_note) { TRACE_CTOR(item_t, "flags_t, const string&"); } -- cgit v1.2.3