aboutsummaryrefslogtreecommitdiffstats
path: root/skate/cmd/skate-biblioref-from-wikipedia
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-03-30 03:24:47 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-03-30 03:24:47 +0200
commit0f9dfeb25a47681c51d3ea0e8a86b1c5bbb0425f (patch)
tree243d27463da8ec0341dc39d67a793bdddc47d92c /skate/cmd/skate-biblioref-from-wikipedia
parent4c0d94ea6be6221e10d4bf196e551424ee945985 (diff)
downloadrefcat-0f9dfeb25a47681c51d3ea0e8a86b1c5bbb0425f.tar.gz
refcat-0f9dfeb25a47681c51d3ea0e8a86b1c5bbb0425f.zip
trim any whitespace
Diffstat (limited to 'skate/cmd/skate-biblioref-from-wikipedia')
-rw-r--r--skate/cmd/skate-biblioref-from-wikipedia/main.go3
1 files changed, 2 insertions, 1 deletions
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
})