From: plugd Date: Mon, 11 Apr 2022 08:12:40 +0000 (+0200) Subject: Prevents indenting gemini lines prefixed only with spaces. X-Git-Tag: v3.3.3~1 X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=elpher.git;a=commitdiff_plain;h=0d68c92d0ad990230c9c018c1f6d43ef63d052c3;hp=ecb5e17d37249bc38c25ee278094fb93b63b0a49 Prevents indenting gemini lines prefixed only with spaces. 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 --- diff --git a/elpher.el b/elpher.el index 3abb771..694d8af 100644 --- 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)))