# File misc/txt2html.rb, line 187 def initialize @body = Elem.new('body') @head = Elem.new('head') super('html', {'xmlns'=>'http://www.w3.org/1999/xhtml', 'xml:lang'=>'fr'}) add(@head) add(@body) end
# File misc/txt2html.rb, line 195 def to_s '<?xml version="1.0" encoding="us-ascii" ?>'+"\n"+ '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"'+"\n"+ IndentAdd*2+'"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'+"\n"+ super.to_s end