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
2011/9/26 Johannes <[email protected]>
> I should also add that internal links that point to existing (and also
> included) pages with a hash location (# in the URL) are actually
> converted into external links that open in the browser, while all
> other internal links are not converted into links at all.
>
> --
> 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.
>
>
--
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.