]> Sergey Matveev's repositories - linksexp.git/commitdiff
Trim newline
authorSergey Matveev <stargrave@stargrave.org>
Tue, 2 Mar 2021 14:20:50 +0000 (17:20 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 2 Mar 2021 14:20:50 +0000 (17:20 +0300)
main.go

diff --git a/main.go b/main.go
index 1ef6d5da2916c84ea0a86d490c75c28ea54339e3..875291dfc7263187959d7ff589fe88f93673cedc 100644 (file)
--- a/main.go
+++ b/main.go
@@ -144,7 +144,7 @@ func main() {
                        }
                        var note string
                        if len(ent["Note"]) > 0 {
-                               note = "(" + ent["Note"][0] + ")"
+                               note = "(" + strings.Trim(ent["Note"][0], " \n") + ")"
                        }
                        fmt.Printf(
                                "  @item %d @tab @url{%s,, %s} %s @tab %s @tab\n",