summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-09-08 21:35:13 +0100
committerJoe Carstairs <me@joeac.net>2026-09-08 21:35:13 +0100
commitdce85da71fe9ec8b41ad57ea86bbac448b143afe (patch)
tree08ef466508bc9d906af597abcc2f7365e93cdf85
parentf5602bab371a3f3a1fb5aced4ec4822c35a9ca5d (diff)
set prefix to nothing if not first line of ```HEADmain
-rwxr-xr-xhttp/bin/gmi2upphtml2
1 files changed, 2 insertions, 0 deletions
diff --git a/http/bin/gmi2upphtml b/http/bin/gmi2upphtml
index 3d36409..afaf9ef 100755
--- a/http/bin/gmi2upphtml
+++ b/http/bin/gmi2upphtml
@@ -110,6 +110,8 @@ do
then
prefix="<pre><code>"
is_first_line_of_preformatted_block=0
+ else
+ prefix=""
fi
if [ "$(echo "$line" | cut -c1-3)" = "\`\`\`" ]
then