diff options
Diffstat (limited to 'prolog')
-rw-r--r-- | prolog/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/prolog/util.py b/prolog/util.py index 6091b17..f5d1865 100644 --- a/prolog/util.py +++ b/prolog/util.py @@ -74,13 +74,13 @@ def compose(lines, rules): line = lines[i] if i > start: code += ' ' - code += stringify(line).replace('\n', ' ') + code += stringify(line) if i == end-1: code += '.\n' elif i == start: code += ' :-\n' else: - if line and line[-1][0] != 'SEMI' and i < end-1 and lines[i+1][-1][0] != 'SEMI': + if line and line[-1][0] != 'SEMI' and lines[i+1][-1][0] != 'SEMI': code += ',' code += '\n' return code.strip() |