lib/taskjuggler/HTMLDocument.rb in taskjuggler-3.4.0 vs lib/taskjuggler/HTMLDocument.rb in taskjuggler-3.5.0
- old
+ new
@@ -1,11 +1,11 @@
#!/usr/bin/env ruby -w
# encoding: UTF-8
#
# = HTMLDocument.rb -- The TaskJuggler III Project Management Software
#
-# Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011, 2012
+# Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
# by Chris Schlaeger <chris@linux.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
@@ -48,10 +48,10 @@
end
@elements << XMLBlob.new(
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 ' +
"#{dtdRef}//EN\" \"#{url}\">")
else
- @elements << XMLBlob.new('<!DOCTYPE>')
+ @elements << XMLBlob.new('<!DOCTYPE html>')
end
@elements << XMLComment.new('This file has been generated by ' +
"#{AppConfig.appName} v#{AppConfig.version}")
attrs = { 'xml:lang' => 'en', 'lang' => 'en' }
attrs['xmlns'] ='http://www.w3.org/1999/xhtml' unless docType == :html5