David wrote :
> It seems that the parser actually relies on the file extension when
> converting files... I was playing around with some text files which were
> actually html files, but had the extension .inc on them. The python parser
> would just convert them as a text file, raw HTML elements left in the
> document in the viewer. When I symlinked the .inc file to .html, and pointed
> the parser at that instead, it seemed to work fine. Bug or...?
It relies on the name extension for local files since that is the easiest
way out. If you want to implement a more intelligent logic, you should be
able to easily plug that in.
Note that for retrieval via HTTP we rely on the web server to specify the
correct type (this has come up before when the server was stupid enough to
lie about the type and you suggest we implemnt the logic to decide the
correct type ourselves).
Holger
_______________________________________________________________________
1.000.000 DM gewinnen - kostenlos tippen - http://millionenklick.web.de
[EMAIL PROTECTED], 8MB Speicher, Verschluesselung - http://freemail.web.de