exception executing command
Traceback (most recent call last):
File "/home/rshanley/Leo5.0-final/leo/core/leoCommands.py", line 556, in doCommand
val = command(event)
File "/home/rshanley/Leo5.0-final/leo/plugins/macros.py", line 111, in parameterize
sr = s = body.getAllText()
AttributeError: 'LeoQtBody' object has no attribute 'getAllText'
PyQt4 is installed.
On Tue, Dec 2, 2014 at 5:43 PM, bobS <rjsha...@gmail.com> wrote:
When I click on Parameterize Section Reference in the Outline menu, I get:
exception executing command
Traceback (most recent call last):
File "/home/rshanley/Leo5.0-final/leo/core/leoCommands.py", line 556, in doCommand
val = command(event)File "/home/rshanley/Leo5.0-final/leo/plugins/macros.py", line 111, in parameterize
sr = s = body.getAllText()AttributeError: 'LeoQtBody' object has no attribute 'getAllText'
PyQt4 is installed.
The attached version of macros.py makes the changes to the outline that seem to be what was intended. But I didn't write this plugin, either. All the debug code has been left in -- a lot of printing to the log pane.
On Fri, Dec 12, 2014 at 11:23 PM, bobS <rjsha...@gmail.com> wrote:The attached version of macros.py makes the changes to the outline that seem to be what was intended. But I didn't write this plugin, either. All the debug code has been left in -- a lot of printing to the log pane.Thanks for this. I'll up it with minor changes:
--
You received this message because you are subscribed to a topic in the Google Groups "leo-editor" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leo-editor/RIXIZdZ6ETs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leo-editor+...@googlegroups.com.
To post to this group, send email to leo-e...@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.
It turns out that the newline is being injected by section reference expansion, and is not a problem with macros. This is handled within leoTangle.py.