Fix parsing and whitespace for multi-line values in db files. - gopher-lawn - The gopher lawn gopher directory project.
(HTM) git clone git://bitreich.org/gopher-lawn/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/gopher-lawn/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
---
(DIR) commit 463dd578c0dd398fc7ffae97c8444cedb50ce7a9
(DIR) parent 5ca2d509c3e1127fee48140f2efdebfc248c92b4
(HTM) Author: Christoph Lohmann <20h@r-36.net>
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(-)
---
(DIR) 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.lstrip())
continue
try: