X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;ds=sidebyside;f=main.go;fp=main.go;h=ffa32468ca023ed5a5dd8959ae49ce8a72506690;hb=a803c543ca637462dc575afc5cd26c0a7ee6b461;hp=875291dfc7263187959d7ff589fe88f93673cedc;hpb=736eb2dd05d3b66795919463001023964062acba;p=linksexp.git diff --git a/main.go b/main.go index 875291d..ffa3246 100644 --- a/main.go +++ b/main.go @@ -148,7 +148,10 @@ func main() { } fmt.Printf( " @item %d @tab @url{%s,, %s} %s @tab %s @tab\n", - n, ent["URL"][0], ent["Title"][0], note, + n, + strings.ReplaceAll(ent["URL"][0], "@", "@@"), + strings.ReplaceAll(ent["Title"][0], "@", "@@"), + note, strings.Join(catsOther, ", "), ) switch feeds := ent["Feed"]; len(feeds) { @@ -161,7 +164,10 @@ func main() { ) default: for i, feed := range feeds { - fmt.Printf(" @url{%s, feed%d}\n", feed, i) + fmt.Printf( + " @url{%s, feed%d}\n", + strings.ReplaceAll(feed, "@", "@@"), i, + ) } } }