aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2003-12-13 23:43:04 +0000
committernyamatongwe <devnull@localhost>2003-12-13 23:43:04 +0000
commit4180658ffa5999a4d2130180a7a0d24e5cc4bcee (patch)
tree5565a495965b181a90ec8082046c4c5676c56374
parentd4b270590f62fd5e3d34ed8318a5a758c5d39d85 (diff)
downloadscintilla-mirror-4180658ffa5999a4d2130180a7a0d24e5cc4bcee.tar.gz
Automatically generated section does not have extra
whitespace at line ends.
-rw-r--r--src/LexGen.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/LexGen.py b/src/LexGen.py
index d4f1dbf3f..1d11e3566 100644
--- a/src/LexGen.py
+++ b/src/LexGen.py
@@ -84,7 +84,9 @@ def CopyWithInsertion(input, commentPrefix, retainDefs, *lists):
copying = 1
if retainDefs:
output.append(line)
- return "\n".join(output)
+ ret = "\n".join(output)
+ ret = ret.replace(" \n", "\n")
+ return ret
def UpdateFile(filename, updated):
""" If the file is different to updated then copy updated