From e4b00f0bffd1f1fb6037a0596f924ef3b2962fac Mon Sep 17 00:00:00 2001 From: Jacques Distler Date: Thu, 22 Sep 2011 07:52:40 -0500 Subject: [PATCH] Fix bug in Maruku to_html_document_tree Reported by Remi. --- vendor/plugins/maruku/lib/maruku/output/to_html.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/plugins/maruku/lib/maruku/output/to_html.rb b/vendor/plugins/maruku/lib/maruku/output/to_html.rb index 7b55e760..4687259b 100644 --- a/vendor/plugins/maruku/lib/maruku/output/to_html.rb +++ b/vendor/plugins/maruku/lib/maruku/output/to_html.rb @@ -170,7 +170,7 @@ Example: root = Nokogiri::XML::Element.new('html', doc) root.add_namespace(nil, 'http://www.w3.org/1999/xhtml') root.add_namespace('svg', "http://www.w3.org/2000/svg" ) - lang = self[:lang] || 'en' + lang = self.attributes[:lang] || 'en' root['xml:lang'] = lang doc << root