From 0e642077571ea56039454d0b02a20a55f2e66227 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 14 Jun 2009 18:26:26 +0100 Subject: If a posting comment is very short, let it hang This applies when using the "print" report, or the "comment" variable. --- src/item.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/item.cc') 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') { -- cgit v1.2.3