From 74fe043a0038e4583db25854cbf4f340be2c6ce6 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 13 Dec 2003 23:43:04 +0000 Subject: Automatically generated section does not have extra whitespace at line ends. --- src/LexGen.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/LexGen.py') 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 -- cgit v1.2.3