# HG changeset patch # User Chris Cannam # Date 1570437152 -3600 # Node ID f576895641c24c4ebc496211965d30c32dfa756d # Parent 9caf5ca5e6cfe942756394fbf2610b8684fc2a0f Comments diff -r 9caf5ca5e6cf -r f576895641c2 main/MainWindow.cpp --- a/main/MainWindow.cpp Wed Sep 25 15:19:57 2019 +0100 +++ b/main/MainWindow.cpp Mon Oct 07 09:32:32 2019 +0100 @@ -5075,13 +5075,24 @@ layout->addWidget(bb, row++, 0, 1, 3); connect(bb, SIGNAL(accepted()), d, SLOT(accept())); + // Remove spurious linefeeds from DOS line endings text.replace('\r', ""); + + // Un-wrap indented paragraphs (assume they are always preceded by + // an empty line, so don't get merged into prior para) text.replace(QRegExp("(.)\n +(.)"), "\\1 \\2"); + + // Rest of para following a " - " at start becomes bulleted entry text.replace(QRegExp("\n - ([^\n]+)"), "\n
\\1
"); -// text.replace(QRegExp("