Great finding. It would be great if that could be fixed. Do you also have an idea why internal links get truncated alltogether when exporting a "large" (if 20+ articles can be considered large) amount of pages into a single PDF?
On 12 Okt., 17:51, Stefan Birkholz <[email protected]> wrote: > I have the same issue with links pointing to #-anchors. > > Apparently, the "buildArticleID()" function in rlwriter.py creates different > md5sums for uris of the form "<articleuri>" and "<articleuri>#<anchor>", > populating the "articleids" list when walking the metabook with md5sums of > the former whereas lateron a link of the latter kind gets a different > md5sum, which is then not found in the articleids-list and therefore the > ... > if article_id in self.articleids: > internallink = True > ... > conditional in "writeLink()" interprets it as an external link. > > Currently, there is a commented-out "#tmplink._normalizeTarget()" function > in buildArticleID()? Will this be used to handle (normalize) ilnks of the > second kind? Or could one change > - idstr = '%s%s' % (wikiurl, tmplink.target) > + idstr = '%s%s' % (wikiurl, tmplink.target.split('#')[0]) > as a quick fix in the next line? > > Regards, > Stefan Birkholz > -- You received this message because you are subscribed to the Google Groups "mwlib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/mwlib?hl=en.
