Przeglądaj źródła

Trim spaces for RDF entry links

Frédéric Guillot 6 lat temu
rodzic
commit
a4ebb33cd5
2 zmienionych plików z 36 dodań i 1 usunięć
  1. 35 0
      reader/rdf/parser_test.go
  2. 1 1
      reader/rdf/rdf.go

Plik diff jest za duży
+ 35 - 0
reader/rdf/parser_test.go


+ 1 - 1
reader/rdf/rdf.go

@@ -63,7 +63,7 @@ func (r *rdfItem) Transform() *model.Entry {
 	entry := new(model.Entry)
 	entry.Title = strings.TrimSpace(r.Title)
 	entry.Author = strings.TrimSpace(r.Creator)
-	entry.URL = r.Link
+	entry.URL = strings.TrimSpace(r.Link)
 	entry.Content = r.Description
 	entry.Hash = getHash(r)
 	entry.Date = getDate(r)

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików