comparison 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
comparison
equal deleted inserted replaced
2311:186a452dddd3 2312:a7934d5661f8
5063 5063
5064 QDialogButtonBox *bb = new QDialogButtonBox(QDialogButtonBox::Ok); 5064 QDialogButtonBox *bb = new QDialogButtonBox(QDialogButtonBox::Ok);
5065 layout->addWidget(bb, row++, 0, 1, 3); 5065 layout->addWidget(bb, row++, 0, 1, 3);
5066 connect(bb, SIGNAL(accepted()), d, SLOT(accept())); 5066 connect(bb, SIGNAL(accepted()), d, SLOT(accept()));
5067 5067
5068 text.replace('\r', "");
5068 text.replace(QRegExp("(.)\n +(.)"), "\\1 \\2"); 5069 text.replace(QRegExp("(.)\n +(.)"), "\\1 \\2");
5069 text.replace(QRegExp("\n - ([^\n]+)"), "\n<li>\\1</li>"); 5070 text.replace(QRegExp("\n - ([^\n]+)"), "\n<li>\\1</li>");
5070 text.replace(QRegExp(": *\n"), ":\n<ul>\n"); 5071 text.replace(QRegExp(": *\n"), ":\n<ul>\n");
5071 text.replace(QRegExp("</li>\n\\s*\n"), "</li>\n</ul>\n\n"); 5072 text.replace(QRegExp("</li>\n\\s*\n"), "</li>\n</ul>\n\n");
5072 text.replace(QRegExp("\n(\\w[^:\n]+:)"), "\n<p><b>\\1</b></p>"); 5073 text.replace(QRegExp("\n(\\w[^:\n]+:)"), "\n<p><b>\\1</b></p>");