aboutsummaryrefslogtreecommitdiff
path: root/gemini.filter.dpi
diff options
context:
space:
mode:
authorcel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519>2020-05-20 21:19:13 -0400
committercel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519>2020-05-20 21:19:13 -0400
commit66388d188b306415b32164962821e0a214a3d1bd (patch)
treeb20c1928a0d5b751b1bcd9614892745736eb1cb0 /gemini.filter.dpi
parent44d924601d24526ab42d4c80d96ed22548c1cd51 (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
Diffstat (limited to 'gemini.filter.dpi')
-rwxr-xr-xgemini.filter.dpi1
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