From: Roberto A. <ra...@ne...> - 2015-06-26 14:25:14
|
On 26/06/15 11:09, Matěj Cepl wrote: > On 2015-06-26, 13:58 GMT, Roberto Alsina wrote: >> No, that was perfectly fine. We do extract body because we support a >> bunch of "compilers" and not all of them play as nice. >> >> Actual code for rst is like this: >> >> return pub.writer.parts['docinfo'] + pub.writer.parts['fragment'] >> >> I don't quite recall the specifics of how it ended up like that ;-) > Could somebody be able to write a simple example of such script? > (/me gets a bit lost while diving into > /usr/lib/python2.7/site-packages/docutils/) Maybe something like https://github.com/getnikola/nikola/blob/master/nikola/plugins/compile/rest/__init__.py#L233 |