Check-in by ben on 2026-03-13 15:42:05 The description was printed out of order on the details page. This was introduced in commit [ce71322300] when i converted to gophernicus. Fix print_html() and print_ref_full() to use out parameter. INSERTED DELETED 2 6 src/web.awk 2 6 TOTAL over 1 changed file Index: src/web.awk ================================================================== --- src/web.awk +++ src/web.awk @@ -110,11 +110,11 @@ } if (type == TYPE_TEXT) { print } } else { - print_ref_full($0, base, proto, root) + print_ref_full(out, $0, base, proto, root) } } close(cmd) unlink(curlcfg) @@ -121,12 +121,10 @@ return } function print_html(out, html, cmd, marker, work) { - out = "" - work = gettemp() gsub(/\\n/, "
", html) print html >work close(work) cmd = sprintf("%s -a -n 3 <%s | %s -ilr -w 60", cmd_strings, work, @@ -150,15 +148,13 @@ } # Print the webdump references section, converting relative URLs # to full URLs -function print_ref_full(str, base, proto, root, link, out, +function print_ref_full(out, str, base, proto, root, link, prefix, relative) { - out = "" - if (match(str, /^ [0-9]+\. /)) { prefix = substr(str, 0, RLENGTH) link = substr(str, RLENGTH + 1) # convert relative links to full URLs if (link !~ /^[a-z]+:/) {