with rev 4747 I get:
Unexpected docutils exception
Traceback (most recent call last):
File "/home/dalcolmo/programs/leo-editor/leo/core/leoRst.py", line
1906, in writeToDocutils
settings_overrides=overrides)
File "/usr/lib/pymodules/python2.6/docutils/core.py", line 398, in
publish_string
enable_exit_status=enable_exit_status)
File "/usr/lib/pymodules/python2.6/docutils/core.py", line 646, in
publish_programmatically
output = pub.publish(enable_exit_status=enable_exit_status)
File "/usr/lib/pymodules/python2.6/docutils/core.py", line 205, in
publish
output = self.writer.write(self.document, self.destination)
File "/usr/lib/pymodules/python2.6/docutils/writers/__init__.py",
line 76, in write
self.translate()
File "/home/dalcolmo/programs/leo-editor/leo/plugins/leo_pdf.py",
line 704, in translate
self.document.walkabout(visitor)
File "/usr/lib/pymodules/python2.6/docutils/nodes.py", line 173, in
walkabout
if child.walkabout(visitor):
File "/usr/lib/pymodules/python2.6/docutils/nodes.py", line 186, in
walkabout
visitor.dispatch_departure(self)
File "/usr/lib/pymodules/python2.6/docutils/nodes.py", line 1617, in
dispatch_departure
return method(node)
File "/home/dalcolmo/programs/leo-editor/leo/plugins/leo_pdf.py",
line 1044, in depart_title
self.putTail(b.start,style=b.style)
File "/home/dalcolmo/programs/leo-editor/leo/plugins/leo_pdf.py",
line 1265, in putTail
style=style,bulletText=bulletText)
File "/home/dalcolmo/programs/leo-editor/leo/plugins/leo_pdf.py",
line 1108, in createParagraph
style = self.styleSheet.get(style)
AttributeError: StyleSheet1 instance has no attribute 'get'
On Nov 6, 10:06 pm, "Edward K. Ream" <[email protected]> wrote:
> On Nov 6, 2:44 pm, "Edward K. Ream" <[email protected]> wrote:
>
> > On Sat, Nov 5, 2011 at 6:40 PM, Edward K. Ream <[email protected]> wrote:
>
> > > get_language takes 2 arguments in the version of docutils I am using. I
> > > suppose the code is going to have to try it both ways...I'll fix this
> > > soon.
>
> > Done at rev 4744. The previous unit tests still passes, but of course
> > that doesn't mean much. Please let me know how the code works for
>
> Rev 4745 fixes several errors. I thought I had run the unit tests,
> but it only runs on Python 2.x. The test now warns when it actually
> doesn't do anything, so this shouldn't happen again.
>
> Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.