My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 11: quickstart.txt input file fails with exception.
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Aug 2008


Sign in to add a comment
 
Reported by h.vonbar...@gmail.com, Apr 20, 2008
What steps will reproduce the problem?
1. Get the file quickstart.txt from the docutils/docs/user/rst/ directory.
2. Run rst2pdf.py quickstart.txt

What is the expected output? What do you see instead?
Expected: quickstart.txt.pdf generated.
Instead:
D:\hvbpy\rst2pdf>c:\Python25\python.exe rst2pdf.py quickstart.txt
No support for hyphenation, install wordaxe
No hyphenation support install wordaxe
No support for hyphenation, install wordaxe
Traceback (most recent call last):
  File "rst2pdf.py", line 700, in <module>
    elements=gen_elements(doc,0)
  File "rst2pdf.py", line 246, in gen_elements
    node.elements=gather_elements(node,depth,style=style)
  File "rst2pdf.py", line 616, in gather_elements
    r=r+(gen_elements(n,depth,in_line_block,style=style))
  File "rst2pdf.py", line 609, in gen_elements
    Paragraph('<a name="%s"/>'%id,style))
  File "C:\reportlab_2_1\reportlab\platypus\paragraph.py", line 555, in 
__init__

    self._setup(text, style, bulletText, frags, cleanBlockQuotedText)
  File "C:\reportlab_2_1\reportlab\platypus\paragraph.py", line 577, in 
_setup
    style, frags, bulletTextFrags = _parser.parse(text,style)
  File "C:\reportlab_2_1\reportlab\platypus\paraparser.py", line 810, in 
parse
    self.feed(text)
  File "C:\reportlab_2_1\reportlab\lib\xmllib.py", line 585, in 
finish_endtag
    self.handle_endtag(tag, method)
  File "C:\reportlab_2_1\reportlab\lib\xmllib.py", line 596, in 
handle_endtag
    method()
  File "C:\reportlab_2_1\reportlab\platypus\paraparser.py", line 451, in 
end_a
    self.handle_data('')
  File "C:\reportlab_2_1\reportlab\platypus\paraparser.py", line 773, in 
handle_
data
    assert len(frag.text) > 0
AssertionError

Downloaded the trunk version today (2008-04-20).
ReportLab 2.1, Windows

At first I thought it might be an error in the wordaxe library, but the 
same happens without wordaxe support.
Apr 20, 2008
#1 h.vonbar...@gmail.com
I'm sorry.
The error happened because I had modified paraparser.py from the RL 2.1 distribution.
Aug 24, 2008
Project Member #2 roberto.alsina
Works here, attached is rendered quickstart.txt

Maybe it got fixed without trying because I redid some parts of the code.
quickstart.txt.pdf
16.6 KB   Download
Status: WontFix
Nov 9, 2010
Project Member #3 roberto.alsina
This issue was closed by revision r2411.
Status: Fixed
Sign in to add a comment

Powered by Google Project Hosting