diff options
author | cel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519> | 2020-05-20 21:19:13 -0400 |
---|---|---|
committer | cel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519> | 2020-05-20 21:19:13 -0400 |
commit | 66388d188b306415b32164962821e0a214a3d1bd (patch) | |
tree | b20c1928a0d5b751b1bcd9614892745736eb1cb0 | |
parent | 44d924601d24526ab42d4c80d96ed22548c1cd51 (diff) |
Hide tabs before link text
e.g. gemini://gemini.circumlunar.space/software/
uses tabs for spacing/alignment assuming the link href is present, but
we are not listing the link href so the tabs make it look weird.
Spaces are still allowed for indenting the link text
-rwxr-xr-x | gemini.filter.dpi | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gemini.filter.dpi b/gemini.filter.dpi index d5c8367..31affc8 100755 --- a/gemini.filter.dpi +++ b/gemini.filter.dpi @@ -90,6 +90,7 @@ render_gemini() { if (!text) { text = href } + sub(/^\t+/, "", prefix) html = escape_html(text) printf "<div>%s<a href=\"%s\">%s</a></div>\n", prefix, href, html next |