Mercurial > hg > easyhg
diff changesetitem.cpp @ 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 | f583e44d9d31 |
children | 10eb97683aa9 |
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;