iFix parsing and whitespace for multi-line values in db files. - gopher-lawn - The gopher lawn gopher directory project. Err bitreich.org 70 hgit clone git://bitreich.org/gopher-lawn/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/gopher-lawn/ URL:git://bitreich.org/gopher-lawn/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/gopher-lawn/ bitreich.org 70 1Log /scm/gopher-lawn/log.gph bitreich.org 70 1Files /scm/gopher-lawn/files.gph bitreich.org 70 1Refs /scm/gopher-lawn/refs.gph bitreich.org 70 1Tags /scm/gopher-lawn/tag bitreich.org 70 i--- Err bitreich.org 70 1commit 463dd578c0dd398fc7ffae97c8444cedb50ce7a9 /scm/gopher-lawn/commit/463dd578c0dd398fc7ffae97c8444cedb50ce7a9.gph bitreich.org 70 1parent 5ca2d509c3e1127fee48140f2efdebfc248c92b4 /scm/gopher-lawn/commit/5ca2d509c3e1127fee48140f2efdebfc248c92b4.gph bitreich.org 70 hAuthor: Christoph Lohmann <20h@r-36.net> URL:mailto:20h@r-36.net bitreich.org 70 iDate: Fri, 28 Aug 2020 21:31:55 +0200 Err bitreich.org 70 i Err bitreich.org 70 iFix parsing and whitespace for multi-line values in db files. Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M lawn-mower/lawn-mower.py | 2 +- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 1 insertion(+), 1 deletion(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/lawn-mower/lawn-mower.py b/lawn-mower/lawn-mower.py /scm/gopher-lawn/file/lawn-mower/lawn-mower.py.gph bitreich.org 70 i@@ -79,7 +79,7 @@ def main(args): Err bitreich.org 70 i if line[0] in ["\f", "\t", "\v", " "]: Err bitreich.org 70 i #print("multi-line") Err bitreich.org 70 i if dbkey != None: Err bitreich.org 70 i- dbobj[dbkey] += line.lstrip() Err bitreich.org 70 i+ dbobj[dbkey] += " %s" % (line.lstrip()) Err bitreich.org 70 i continue Err bitreich.org 70 i Err bitreich.org 70 i try: Err bitreich.org 70 .