From 0af52bf531c64f6b7d0c10bdbce8dc0cd9bf1661 Mon Sep 17 00:00:00 2001 From: jwinnie Date: Mon, 29 Nov 2021 21:11:03 -0500 Subject: Fix variable name conflict in AWK --- gmi2html.awk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gmi2html.awk') diff --git a/gmi2html.awk b/gmi2html.awk index 0193e6e..3092852 100755 --- a/gmi2html.awk +++ b/gmi2html.awk @@ -21,12 +21,12 @@ # $ awk -f gmi2html.awk \ # -v title= \ # -v css=<css> \ -# -v url=<url> < path/to/gmi > path/to/html +# -v original=<original> < path/to/gmi > path/to/html # # parameters: # <title>: the title of the document, used in the HTML <title> # <css>: relative path to a CSS stylesheet -# <url>: URL of the original Gemini document, linked in the footer +# <original>: URL of the original Gemini document, linked in the footer # Begin HTML document BEGIN { @@ -174,5 +174,5 @@ Also available on <a href=\"gemini://%s\">Gemini</a>\ </small>\ </footer>\ </body>\ -</html>", url +</html>", original } -- cgit 1.4.1-2-gfad0 From 29cdd995bec13064b7dbf9f36b5831388fb6d93c Mon Sep 17 00:00:00 2001 From: jwinnie <jwinnie@tilde.institute> Date: Mon, 29 Nov 2021 21:40:12 -0500 Subject: Remove unsemantic HTML decorations (use CSS instead!) --- gmi2html.awk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gmi2html.awk') diff --git a/gmi2html.awk b/gmi2html.awk index 3092852..cba6c20 100755 --- a/gmi2html.awk +++ b/gmi2html.awk @@ -119,7 +119,7 @@ BEGIN { /^>/ { sub(/^>[ \t]*/, "") - printf "<blockquote><p>“%s”</p></blockquote>", $0 + printf "<blockquote>%s</blockquote>", $0 next } @@ -147,7 +147,7 @@ BEGIN { text = url } - printf "<p><code>=></code> <a href=\"%s\">%s</a></p>", url, text + printf "<p><a href=\"%s\">%s</a></p>", url, text next } -- cgit 1.4.1-2-gfad0