Prevents indenting gemini lines prefixed only with spaces.
authorplugd <plugd@thelambdalab.xyz>
Mon, 11 Apr 2022 08:12:40 +0000 (10:12 +0200)
committerplugd <plugd@thelambdalab.xyz>
Mon, 11 Apr 2022 08:12:40 +0000 (10:12 +0200)
Addresses this comment from the elpher feedback page:
Admittedly, this is a small complaint, but elpher has problems
with indentations in paragraphs in gemini (haven't tested with
gopher). It is supposed to stop indenting after the first line
break, but doesn't do so, instead keeping the indentation for the
whole paragraph. I uploaded a picture showing on the top the
expected result and on the bottom what elpher shows.
https://ttm.sh/if_.png

elpher.el

index 3abb771..694d8af 100644 (file)
--- a/elpher.el
+++ b/elpher.el
@@ -1584,7 +1584,7 @@ width defined by `elpher-gemini-max-fill-width'."
             text-line))
          (fill-prefix (if line-prefix
                           (make-string (length (match-string 0 text-line)) ?\s)
-                        nil)))
+                        "")))
     (insert (elpher-process-text-for-display processed-text-line))
     (newline)))