rsinger-rdfobjects 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rdf_objects/parsers.rb +3 -3
- metadata +1 -1
data/lib/rdf_objects/parsers.rb
CHANGED
@@ -86,14 +86,14 @@ class NTriplesParser
|
|
86
86
|
else
|
87
87
|
@literal = true
|
88
88
|
scanner.getch
|
89
|
-
object = scanner.scan_until(/("\s?\.\n?$)|("@[A-z])|("\^\^)/)
|
89
|
+
object = scanner.scan_until(/("\s?\.\s*\n?$)|("@[A-z])|("\^\^)/)
|
90
90
|
scanner.pos=(scanner.pos-2)
|
91
91
|
object.sub!(/"..$/,'')
|
92
92
|
if object.respond_to?(:force_encoding)
|
93
|
-
object.force_encoding('utf-8')
|
93
|
+
object.force_encoding('utf-8').chomp!
|
94
94
|
else
|
95
95
|
uscan = UTF8Parser.new(object)
|
96
|
-
object = uscan.parse_string
|
96
|
+
object = uscan.parse_string.chomp!
|
97
97
|
end
|
98
98
|
if scanner.match?(/@/)
|
99
99
|
scanner.getch
|