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

Dinu Gherman gherman at darwin.in-berlin.de
Thu Jun 12 19:01:25 EDT 2003


David Goodger:

> Dinu Gherman wrote:
>> Another related issue is this: I'm generating code snippets outside
>> of docutils and would like to pass chunks containing some HTML to
>> docutils, but without having it transform them into entities like
>> > etc. It should only care about the reST formatting rules. May-
>> be there is a clever way to do this?
>
> I'm not following you.  Can you provide examples?  What exactly do
> these "code snippets" contain, and how are they generated?
> I suspect the "raw" directive may be part of the answer.

Ok, I've worked around that without "raw", since it affected only
hyperlinks, but I'll look into "raw", too, as this is probably the
more general solution...

In fact, I've got snippets that contain HTML hyperlinks like this:
<a href...>...</a> which the HTML writer of docutils seems to
translate into something like this &lt;a...a&gt; Now I do create
proper doctutils inline hyperlinks like this `%s <http:...>`__
which works just fine.

Thanks,

Dinu

--
Dinu C. Gherman
......................................................................
"I know the human being and fish can coexist peacefully."
(George W. Bush, 29 Sep. 2000)




More information about the Doc-SIG mailing list