]> asedeno.scripts.mit.edu Git - vt_decor.git/commitdiff
strip newlines from the heads of bullets
authorAlejandro R. Sedeño <asedeno@mit.edu>
Thu, 17 Feb 2022 03:36:02 +0000 (22:36 -0500)
committerAlejandro R. Sedeño <asedeno@mit.edu>
Thu, 17 Feb 2022 03:36:02 +0000 (22:36 -0500)
vt_decor.py

index ddf4f6b238f3373f74bceb32204a9aa0d0f84095..0fb2774311f99ad9a54b1b1a19b4a7e441c95fb3 100644 (file)
@@ -158,7 +158,7 @@ class RoostVTDecor(roost.RoostMessage.Decor):
                     # Bullet
                     if ret:
                         ret += indent
-                    ret += m
+                    ret += m.lstrip('\n')
                     bindent = ' ' * util.glyphwidth(m)
                 else:
                     # Content