git.iko.soy/typeable/pandoc
on master help sign in
In HTML writer, include <title></title> even if title is null.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@171 788f1e2b-df1e-0410-8736-df70ead52e1b

commit6411ea7466f67f94816c541a22abb7249d36c377 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateSat 9 Dec 2006, 02:05 (20 years ago) parent6536e64
1 file changed+1−4
src/Text/Pandoc/Writers/HTML.hs+1−4
src/Text/Pandoc/Writers/HTML.hs+1−4
@@ -90,10 +90,7 @@ attributeStringToHtml = gsub "\"" "&quot;"
9090-- | Returns an HTML header with appropriate bibliographic information.
9191htmlHeader :: WriterOptions -> Meta -> String
9292htmlHeader options (Meta title authors date) =
93− let titletext = if (null title) then
94− ""
95− else
96− "<title>" ++ (inlineListToHtml options title) ++ "</title>\n"
93+ let titletext = "<title>" ++ (inlineListToHtml options title) ++ "</title>\n"
9794 authortext = if (null authors) then
9895 ""
9996 else