Commit dda5d2a9 authored by Michael Büsch's avatar Michael Büsch

editwidget: Remove extra line ending

Signed-off-by: Michael Büsch's avatarMichael Buesch <m@bues.ch>
parent cecdbbff
......@@ -448,7 +448,7 @@ class EditWidget(SourceCodeEdit):
def __updateSource(self):
sourceText = self.toPlainText()
# Convert to DOS-style line endings
sourceText = "\r\n".join(sourceText.splitlines()) + "\r\n"
sourceText = "\r\n".join(sourceText.splitlines())
# Convert to binary
try:
sourceBytes = sourceText.encode(AwlParser.TEXT_ENCODING,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment