diff options
Diffstat (limited to 'skate')
-rw-r--r-- | skate/cmd/skate-biblioref-from-wikipedia/main.go | 3 |
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 }) |