From: Rolfox <lu...@gm...> - 2010-10-08 17:05:17
|
Helou friends I'm studing rsST and then, I try to runa this under linux Ubu 10.04, docutils 0.6-3: $ rst2pdf Quick\ reStructuredText.html and this is what happend: """ Quick reStructuredText.html:4: (ERROR/3) Unexpected indentation. Quick reStructuredText.html:11: (WARNING/2) Definition list ends without a blank line; unexpected unindent. ... a lot of ERRORs and WARNINGs Traceback (most recent call last): File "/usr/local/bin/rst2pdf", line 9, in <module> load_entry_point('rst2pdf==0.15', 'console_scripts', 'rst2pdf')() File "/usr/local/lib/python2.6/dist-packages/rst2pdf-0.15- py2.6.egg/rst2pdf/createpdf.py", line 1357, in main compressed=options.compressed) File "/usr/local/lib/python2.6/dist-packages/rst2pdf-0.15- py2.6.egg/rst2pdf/createpdf.py", line 586, in createPdf pdfdoc.multiBuild(elements) File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 955, in multiBuild self.build(tempStory, **buildKwds) File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 877, in build self.handle_flowable(flowables) File "/usr/local/lib/python2.6/dist-packages/rst2pdf-0.15- py2.6.egg/rst2pdf/createpdf.py", line 724, in handle_flowable raise LayoutError(ident) reportlab.platypus.doctemplate.LayoutError: Flowable <SplitTable at 0x4583f80> containing: [<rst2pdf.flowables.DelayedTable instance at 0x3a14488>] too large on page 2 in frame None(469.88976378 x 688.157480315*) of template 'fancypage' """ (http://docutils.sourceforge.net/docs/user/rst/quickref.html --> saved like "Quick\ reStructuredText.html ") What is wrong ? the ".html", or my distro ? Success Rolfox |
From: David G. <go...@py...> - 2010-10-08 18:14:10
|
On Fri, Oct 8, 2010 at 13:03, Rolfox <lu...@gm...> wrote: > I'm studing rsST and then, I try to runa this under linux Ubu 10.04, docutils > 0.6-3: > > $ rst2pdf Quick\ reStructuredText.html > > and this is what happend: ... > ... a lot of ERRORs and WARNINGs ... > (http://docutils.sourceforge.net/docs/user/rst/quickref.html --> saved like > "Quick\ reStructuredText.html ") > > What is wrong ? the ".html", or my distro ? The problem is that you're trying to process HTML source (input). Docutils processes reStructuredText source, not HTML -- it *produces* HTML (and PDF, etc.) *output*. Your source file (quickref.html) is hand-written HTML, there is no reST source for it, so you cannot process it with Docutils. If you want a PDF of that file, use your browser's print-to-PDF function. If you want to try rst2pdf, use a reST (text) source file, such as http://docutils.sourceforge.net/docs/user/rst/quickstart.txt -- David Goodger <http://python.net/~goodger> |