diff options
-rw-r--r-- | src/item.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/item.cc b/src/item.cc index 758ce254..e54fa6be 100644 --- a/src/item.cc +++ b/src/item.cc @@ -258,10 +258,12 @@ value_t get_comment(item_t& item) if (! item.note) { return string_value(""); } else { - // jww (2009-03-01): If the comment is a short one-liner, put it at the - // end of the post/xact std::ostringstream buf; - buf << "\n ;"; + if (item.note->length() > 15) + buf << "\n ;"; + else + buf << " ;"; + bool need_separator = false; for (const char * p = item.note->c_str(); *p; p++) { if (*p == '\n') { |