changeset 66:5616a814c58b

* Use more than one line of the commit log, if it fits
author Chris Cannam
date Wed, 17 Nov 2010 20:21:18 +0000
parents 7b1b333acf93
children be627aeceaed
files changesetitem.cpp
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/changesetitem.cpp	Wed Nov 17 20:21:00 2010 +0000
+++ b/changesetitem.cpp	Wed Nov 17 20:21:18 2010 +0000
@@ -110,11 +110,10 @@
     paint->setFont(f);
 
     QString comment = m_changeset->comment().trimmed();
-    comment = comment.replace("\\n", "\n");
+    comment = comment.replace("\\n", " ");
     comment = comment.replace(QRegExp("^\"\\s*\\**\\s*"), "");
     comment = comment.replace(QRegExp("\"$"), "");
     comment = comment.replace("\\\"", "\"");
-    comment = comment.split('\n')[0];
 
     wid = width - 5;
     int nlines = (height / fh) - 1;