From 0f9dfeb25a47681c51d3ea0e8a86b1c5bbb0425f Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Tue, 30 Mar 2021 03:24:47 +0200 Subject: trim any whitespace --- skate/cmd/skate-biblioref-from-wikipedia/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'skate') diff --git a/skate/cmd/skate-biblioref-from-wikipedia/main.go b/skate/cmd/skate-biblioref-from-wikipedia/main.go index e598491..15b0d0a 100644 --- a/skate/cmd/skate-biblioref-from-wikipedia/main.go +++ b/skate/cmd/skate-biblioref-from-wikipedia/main.go @@ -6,6 +6,7 @@ import ( "log" "os" "runtime" + "strings" "git.archive.org/martin/cgraph/skate" "git.archive.org/martin/cgraph/skate/parallel" @@ -30,7 +31,7 @@ func main() { if idl.DOI == "" { return nil, nil } - s := fmt.Sprintf("%s\t%s\t%s", w.PageTitle, idl.DOI, string(p)) + s := fmt.Sprintf("%s\t%s\t%s", strings.TrimSpace(w.PageTitle), idl.DOI, string(p)) return []byte(s), nil }) -- cgit v1.2.3