Mercurial > hg > sonic-visualiser
diff main/MainWindow.cpp @ 2312:a7934d5661f8
Avoid breaking if CHANGELOG happens to have DOS line endings
author | Chris Cannam |
---|---|
date | Tue, 03 Sep 2019 13:44:45 +0100 |
parents | 186a452dddd3 |
children | f2dd9218617e |
line wrap: on
line diff
--- a/main/MainWindow.cpp Fri Aug 30 11:56:03 2019 +0100 +++ b/main/MainWindow.cpp Tue Sep 03 13:44:45 2019 +0100 @@ -5065,6 +5065,7 @@ layout->addWidget(bb, row++, 0, 1, 3); connect(bb, SIGNAL(accepted()), d, SLOT(accept())); + text.replace('\r', ""); text.replace(QRegExp("(.)\n +(.)"), "\\1 \\2"); text.replace(QRegExp("\n - ([^\n]+)"), "\n<li>\\1</li>"); text.replace(QRegExp(": *\n"), ":\n<ul>\n");