For some reason, when I parse article from a CDB file, all of the
mwx.link.article hrefs are number signs.

It seems to stem from the following portion of xhtmlwriter.py:
    def xwriteLink(self, obj): # FIXME (known|unknown)
        a = ET.Element("a", href=obj.url or "#")
        a.set("class", "mwx.link.article")
        if not obj.children:
            a.text = obj.target
        return a

For example:
Running
     mw-render -c "C:\enwiki\wikiconf.txt" -w xhtml -o c:\enwiki
\NASA.htm -x "NASA"
Produces a html file that has links like this
     <a class="mwx.link.article" href="#">United States government</a>

Why is this?  Is there any way to fix or override it?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to