diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2014-06-05 19:02:48 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2014-06-05 19:02:48 +0000 |
commit | 79df37f173bdc784694d8979d173f3067a3baee3 (patch) | |
tree | d73ed004074c404c70547b24801ea861851e7649 | |
parent | added spanish help files (diff) | |
download | gpg4usb-79df37f173bdc784694d8979d173f3067a3baee3.tar.gz gpg4usb-79df37f173bdc784694d8979d173f3067a3baee3.zip |
changed remove double linebreaks to old behaviour
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@1111 34ebc366-c3a9-4b3c-9f84-69acf7962910
-rw-r--r-- | mainwindow.cpp | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index cacc8ca..f4f7d32 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1320,25 +1320,7 @@ void MainWindow::slotCleanDoubleLinebreaks() } QString content = edit->curTextPage()->toPlainText(); - - /** - * make sure to not remove parts of signature - */ - int start = content.indexOf(GpgConstants::PGP_SIGNED_BEGIN); - int startSig = content.indexOf(GpgConstants::PGP_SIGNATURE_BEGIN); - - bool isSignature = false; - if(start > -1 || startSig > -1 ) { - isSignature=true; - } - - if(isSignature) { - // cut between start+next \n and startSig, replace \n\n and then insert between - // start+next \n and startSig - } else { - content.replace("\n\n", "\n"); - } - + content.replace("\n\n", "\n"); edit->slotFillTextEditWithText(content); } |