1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00

url escape for outline items

This commit is contained in:
Lu Wang 2013-02-15 22:28:30 +08:00
parent d83a41441f
commit 1ba86a3764

View File

@ -35,8 +35,9 @@ void HTMLRenderer::process_outline_items(GooList * items)
string dest = get_linkaction_str(item->getAction(), detail);
// we don't care dest is empty or not.
f_outline.fs << "<li>"
<< "<a href=\"" << dest << "\"";
f_outline.fs << "<li>" << "<a href=\"";
outputURL(f_outline.fs, dest);
f_outline.fs << "\"";
if(!detail.empty())
f_outline.fs << " data-dest-detail='" << detail << "'";