Change output format to xhtml.

This commit is contained in:
Duan Yao 2014-07-12 08:45:20 +08:00
parent 9c0b2a8a74
commit 5993548c1d
3 changed files with 7 additions and 7 deletions

View File

@ -17,11 +17,11 @@
"""
<!DOCTYPE html>
<!-- Created by pdf2htmlEX (https://github.com/coolwanglu/pdf2htmlex) -->
<html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta name="generator" content="pdf2htmlEX">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta charset="utf-8"/>
<meta name="generator" content="pdf2htmlEX"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
"""
#############

View File

@ -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;
}

View File

@ -35,9 +35,9 @@ const std::map<std::string, EmbedStringEntry> EMBED_STRING_MAP({
"\"></script>" }},
{".png", {&Param::embed_image,
"<img alt=\"\" src=\"data:image/png;base64,",
"\">", true,
"\"/>", true,
"<img alt=\"\" src=\"",
"\">" }}
"\"/>" }}
});
const std::map<std::string, std::string> FORMAT_MIME_TYPE_MAP({