Permalink
Browse files

Fixed broken xml-literal-mixed test; there was extra un-detected whit…

…espace.
  • Loading branch information...
1 parent bf9444e commit 8efef3024ee7c8c91bee1c61bda0b23f1abcf4f0 @gkellogg committed Jul 1, 2010
Showing with 1 addition and 3 deletions.
  1. +0 −1 lib/rdf_context/literal.rb
  2. +1 −1 test/rdf_tests/xml-literal-mixed.nt
  3. +0 −1 test/rdf_tests/xml-literal-mixed.rdf
@@ -262,7 +262,6 @@ def encode_contents(contents, options)
# Gather namespaces from self and decendant nodes
c.traverse do |n|
ns = n.namespace
- puts "ns: #{ns.inspect}"
next unless ns
prefix = ns.prefix ? "xmlns:#{ns.prefix}" : "xmlns"
c[prefix] = ns.href unless c.namespaces[prefix]
@@ -3,4 +3,4 @@
<html:b xmlns:html="http://www.w3.org/1999/xhtml" html:a="b">bar<rdf:Thing xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><a:b xmlns:a="foo:"></a:b>here<a:c xmlns:a="foo:"></a:c></rdf:Thing></html:b>
baz
<html:i xmlns:html="http://www.w3.org/1999/xhtml">more</html:i>
- """^^rdf:XMLLiteral .
+ """^^rdf:XMLLiteral .
@@ -9,7 +9,6 @@
<html:b xmlns:html="http://www.w3.org/1999/xhtml" html:a="b">bar<rdf:Thing xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><a:b xmlns:a="foo:"></a:b>here<a:c xmlns:a="foo:"></a:c></rdf:Thing></html:b>
baz
<html:i xmlns:html="http://www.w3.org/1999/xhtml">more</html:i>
-
</title>
</rdf:Description>
</rdf:RDF>

0 comments on commit 8efef30

Please sign in to comment.