Commit 6f1f18f6 authored by IBBoard's avatar IBBoard
Browse files

Do not rewrite page-relative anchor links

If we rewrite them then we get "epub:///path/#anchor" URLs, which
are no-longer page-relative
parent 7d4bb882
......@@ -58,7 +58,7 @@ set_epub_uri (xmlNode *node,
if (cur_node->type == XML_ELEMENT_NODE ) {
text = xmlGetProp (cur_node, BAD_CAST (attr));
if (!strcmp ((const char *) cur_node->name, tagname) && text) {
if (!strcmp ((const char *) cur_node->name, tagname) && text && text[0] != '#') {
SoupURI *uri = soup_uri_new_with_base (baseURI, (const char *) text);
gchar *value = soup_uri_to_string (uri, FALSE);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment