astro

a POSIX shell compatible gemini client (mirror of https://github.com/blmayer/astro)
git clone https://git.clttr.info/astro.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit f3ee2e05a42ba127de4a258578fc881b3fd4449a
parent 5ed6bd3972ade3315fa90ff6a44d0be11e28dc0f
Author: Brian Mayer <bleemayer@gmail.com>
Date:   Thu,  2 Feb 2023 00:50:08 -0300

Merge pull request #30 from rnwgnr/main

escape % in gemtext while typesetting
Diffstat:
Mastro | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/astro b/astro @@ -204,7 +204,7 @@ typesetgmi() { '* '*) sty="" && line=" $sty_listb•$sty_listt$(echo "$line" | cut -c 2-)";; *) sty="";; esac - echo "$line" | fold -w "$width" -s | { + echo "$line" | sed 's/%/%%/g' | fold -w "$width" -s | { while IFS='' read -r txt do printf "%*s" "$margin" ""