]> Sergey Matveev's repositories - linksexp.git/commitdiff
Safer @url usage
authorSergey Matveev <stargrave@stargrave.org>
Sun, 10 Jan 2021 15:00:16 +0000 (18:00 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 10 Jan 2021 15:00:16 +0000 (18:00 +0300)
main.go

diff --git a/main.go b/main.go
index 6df487a4d4f5f5304182d0611b30bfe6b6ac9f1b..cf3ffe574f0ed94d8f9b8b6c13a6d71abcefb127 100644 (file)
--- a/main.go
+++ b/main.go
@@ -147,7 +147,7 @@ func main() {
                                note = "(" + ent["Note"][0] + ")"
                        }
                        fmt.Printf(
-                               "  @item %d @tab @url{%s, %s} %s @tab %s @tab\n",
+                               "  @item %d @tab @url{%s,, %s} %s @tab %s @tab\n",
                                n, ent["URL"][0], ent["Title"][0], note,
                                strings.Join(catsOther, ", "),
                        )