--- a/PluginPrintRemover.py Wed Jan 01 14:47:59 2014 +0100 +++ b/PluginPrintRemover.py Wed Jan 01 16:01:00 2014 +0100 @@ -263,7 +263,7 @@ text = editor.text() newText = "".join([ - line for line in text.splitlines(keepends=True) + line for line in text.splitlines(True) if not line.lstrip().startswith(pattern) or "__NO_REMOVE__" in line ])