Fix parsing and whitespace for multi-line values in db files. - gopher-lawn - T… | |
git clone git://bitreich.org/gopher-lawn/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhf… | |
Log | |
Files | |
Refs | |
Tags | |
--- | |
commit 463dd578c0dd398fc7ffae97c8444cedb50ce7a9 | |
parent 5ca2d509c3e1127fee48140f2efdebfc248c92b4 | |
Author: Christoph Lohmann <[email protected]> | |
Date: Fri, 28 Aug 2020 21:31:55 +0200 | |
Fix parsing and whitespace for multi-line values in db files. | |
Diffstat: | |
M lawn-mower/lawn-mower.py | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/lawn-mower/lawn-mower.py b/lawn-mower/lawn-mower.py | |
@@ -79,7 +79,7 @@ def main(args): | |
if line[0] in ["\f", "\t", "\v", " "]: | |
#print("multi-line") | |
if dbkey != None: | |
- dbobj[dbkey] += line.lstrip() | |
+ dbobj[dbkey] += " %s" % (line.… | |
continue | |
try: |