[Doc-SIG] Getting HTML without header/footer etc.?
Dinu Gherman
gherman at darwin.in-berlin.de
Sat Jun 21 12:39:29 EDT 2003
Garth Kidd:
> PyDS' `StructuredText.py`__ shows how to derive a
> ``HTMLFragmentTranslator``
> from ``docutils.writers.html4css1.HTMLTranslator`` without having to
> define
> your own from scratch. Georg has hacked into the code since I wrote it,
> though, so don't ask me what ``HTMLFragmentWriter.translate`` is up
> to. :)
>
> __ http://simon.bofh.ms/cgi-bin/cvsweb/PyDS/PyDS/StructuredText.py
Having some headaches with my own approach I tried this and found
I'm getting a traceback like this (on a fresh CSV checkout):
[localhost:test/fragments] dinu% python StructuredText.py
Traceback (most recent call last):
File "StructuredText.py", line 140, in ?
class Latin1StringIO(docutils.io.StringIO):
AttributeError: 'module' object has no attribute 'StringIO'
Simply replacing docutils.io.StringIO with (c)StringIO.StringIO
doesn't work, either.
Dinu
--
Dinu C. Gherman
......................................................................
"I want to put a ding in the universe." (Steve Jobs)
More information about the Doc-SIG
mailing list