Lawn mower correction. - 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 c61740dd36859ab809da29aee2b16622314f910d
 (DIR) parent 6274a935a67477017b2667d85d15e75d485b3165
 (HTM) Author: Christoph Lohmann <20h@r-36.net>
       Date:   Sun, 30 Oct 2022 16:11:53 +0100
       
       Lawn mower correction.
       
       Diffstat:
         M lawn-mower/lawn-mower.py            |       8 ++++----
       
       1 file changed, 4 insertions(+), 4 deletions(-)
       ---
 (DIR) diff --git a/lawn-mower/lawn-mower.py b/lawn-mower/lawn-mower.py
       @@ -189,7 +189,7 @@ def main(args):
                def printdescription(desc):
                        maxlinelen = 70
                        if len(desc) <= maxlinelen:
       -                        return "t%s\n" % (desc)
       +                        return "%s\n" % (desc)
        
                        rtext = ""
                        adesc = desc
       @@ -198,14 +198,14 @@ def main(args):
                                i = 70
                                while i > maxlinelen-20:
                                        if adesc[i] in [" ", "\t", "\v", "\f", "-"]:
       -                                        rtext += "t%s\n" % (adesc[:i])
       +                                        rtext += "%s\n" % (adesc[:i])
                                                adesc = adesc[i+1:]
                                                break
                                        i -= 1
                                if i <= maxlinelen-20:
       -                                rtext += "t%s\n" % (adesc[:maxlinelen])
       +                                rtext += "%s\n" % (adesc[:maxlinelen])
                                        adesc = adesc[maxlinelen:]
       -                rtext += "t%s\n" % (adesc)
       +                rtext += "%s\n" % (adesc)
        
                        return rtext