site

My personal website.

Date: Tue, 13 Jul 2021 11:20:24 +0200

Fix gopher link generation in generate

Diffstat:

M generate                            |       5 ++++-

1 file changed, 4 insertions(+), 1 deletion(-)

@@ -43,6 +43,9 @@ function wrap(text,   q, y, z) {
         list = 0;
     }
     url = $1;
+    text = $2;
+    if (text == "")
+        text = url;
     $1 = "";
     sub(/^ /, "", $0);
     if (html) {
@@ -82,7 +85,7 @@ function wrap(text,   q, y, z) {
             path = url;
             port = "70";
         }
-        print "[" itemtype "|" path "|" host "|" port "]";
+        print "[" itemtype "|" text "|" path "|" host "|" port "]";
     }
     next;
 }