diff options
-rw-r--r-- | mainwindow.cpp | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index 3041150..381b1b4 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -960,25 +960,7 @@ void MainWindow::cleanDoubleLinebreaks() } 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->fillTextEditWithText(content); } |