My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 215: Doing a section title in Bookrest crashes the previewer
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Oct 14
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by pedahzur, Oct 13, 2009
What steps will reproduce the problem?
1. Start Bookrest
2. Type this:

=========
My Title

hitting enter after "My Title"

What is the expected output? What do you see instead?

Not sure what the expected output is, but I'm pretty sure it's not 
supposed to be this (in the console):

Process Process-1:
Traceback (most recent call last):
  File "/usr/lib/python2.6/multiprocessing/process.py", line 231, in 
_bootstrap
    self.run()
  File "/usr/lib/python2.6/multiprocessing/process.py", line 88, in run
    self._target(*self._args, **self._kwargs)
  File "main.py", line 94, in renderQueue
    settings_overrides={'warning_stream':warnings})
  File "/usr/lib/python2.6/dist-packages/docutils/core.py", line 464, in 
publish_doctree
    output = pub.publish(enable_exit_status=enable_exit_status)
  File "/usr/lib/python2.6/dist-packages/docutils/core.py", line 204, in 
publish
    self.settings)
  File "/usr/lib/python2.6/dist-packages/docutils/readers/__init__.py", 
line 69, in read
    self.parse()
  File "/usr/lib/python2.6/dist-packages/docutils/readers/__init__.py", 
line 75, in parse
    self.parser.parse(self.input, document)
  
File "/usr/lib/python2.6/dist-packages/docutils/parsers/rst/__init__.py", 
line 157, in parse
    self.statemachine.run(inputlines, document, inliner=self.inliner)
  File "/usr/lib/python2.6/dist-packages/docutils/parsers/rst/states.py", 
line 170, in run
    input_source=document['source'])
  File "/usr/lib/python2.6/dist-packages/docutils/statemachine.py", line 
232, in run
    context, state, transitions)
  File "/usr/lib/python2.6/dist-packages/docutils/statemachine.py", line 
420, in check_line
    return method(match, context, next_state)
  File "/usr/lib/python2.6/dist-packages/docutils/parsers/rst/states.py", 
line 2844, in text
    nodes.literal_block(blocktext, blocktext), line=lineno)
  File "/usr/lib/python2.6/dist-packages/docutils/utils.py", line 222, in 
severe
    return self.system_message(self.SEVERE_LEVEL, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/docutils/utils.py", line 180, in 
system_message
    raise SystemMessage(msg, level)
SystemMessage: <string>:1: (SEVERE/4) Incomplete section title.

=========
My Title

After the crash, neither the real-time preview nor the "Render" button 
will work.

What version of the product are you using? On what operating system?

Linux, Ubuntu 9.04, rst2pdf rev 1193

Please provide any additional information below.

Workaround: Do this:

My Title
========

Then add the line of "========" over "My Title"

Comment 1 by roberto.alsina, Oct 14, 2009
This issue was closed by revision r1194.
Status: Fixed
Mergedinto: -
Comment 2 by roberto.alsina, Oct 14, 2009
Fixed in r1194, please verify if possible.
Sign in to add a comment

Hosted by Google Code