changeset 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 063230f5fab5
files main/MainWindow.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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");