From 5993548c1dc82ad6bfa9a665a75753ca20abeb22 Mon Sep 17 00:00:00 2001 From: Duan Yao Date: Sat, 12 Jul 2014 08:45:20 +0800 Subject: [PATCH] Change output format to xhtml. --- share/manifest | 8 ++++---- share/pdf2htmlEX.js.in | 2 +- src/util/const.cc | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/share/manifest b/share/manifest index c47b9a2..74088d1 100644 --- a/share/manifest +++ b/share/manifest @@ -17,11 +17,11 @@ """ - + - - - + + + """ ############# diff --git a/share/pdf2htmlEX.js.in b/share/pdf2htmlEX.js.in index f21d3df..636c94a 100644 --- a/share/pdf2htmlEX.js.in +++ b/share/pdf2htmlEX.js.in @@ -273,7 +273,7 @@ Viewer.prototype = { var nodes = this.outline.childNodes; for (var i = 0, l = nodes.length; i < l; ++i) { var cur_node = nodes[i]; - if (cur_node.nodeName === 'UL') { + if (cur_node.nodeName.toLowerCase() === 'ul') { empty = false; break; } diff --git a/src/util/const.cc b/src/util/const.cc index cd84986..c85e0d5 100644 --- a/src/util/const.cc +++ b/src/util/const.cc @@ -35,9 +35,9 @@ const std::map EMBED_STRING_MAP({ "\">" }}, {".png", {&Param::embed_image, "\"\"", true, + "\"/>", true, "\"\"" }} + "\"/>" }} }); const std::map FORMAT_MIME_TYPE_MAP({