Check-in by ben on 2024-08-05 21:30:19
Webdump formats tables using tab characters. Tab characters have
special meaning in gophermaps. Replace them with 8 spaces in
function print_html()
INSERTED DELETED
1 0 src/web.awk
1 0 TOTAL over 1 changed file
Index: src/web.awk
==================================================================
--- src/web.awk
+++ src/web.awk
@@ -142,10 +142,11 @@
print html >work
close(work)
cmd = sprintf("%s -a -n 3 <%s | %s -ilr -w 60", cmd_strings, work, \
cmd_webdump)
while ((cmd | getline) > 0) {
+ gsub(/\t/, " ")
print
}
close(cmd)
unlink(work)
return