[Doc-SIG] Getting HTML without header/footer etc.?

Dinu Gherman gherman at darwin.in-berlin.de
Thu Jun 12 14:48:44 EDT 2003


Hi,

I'm pretty new to docutils, so please be patient with a maybe
silly question of mine. I checked the FAQ, looked into the tests
and tool samples, but can't find the answer, yet.

Basically, I want to expand an reST string using the docutils ma-
chinary, like this:

     from docutils.core import publish_string
     input = "**italics**"
     output = publish_string(input, writer_name='html')
     # output should be "<i>italics</i>" or sth. like this

So, I'd like to process only individual snippets of text and would
prefer not to see all the HTML headers and footers and what not
being added to the output. Is there some way to achieve this?

Thanks,

Dinu

--
Dinu C. Gherman
......................................................................
"Will the highways on the Internet become more few?"
(George W. Bush, 29 Jan. 2000)




More information about the Doc-SIG mailing list