I'm using:
Leo 4.7.1 final, build 3005, February 26, 2010
Python 2.6.5, qt version 4.6.2
linux2    (Ubuntu Studio 10.04)

I selected the root of a subtree I wanted to convert to HTML, then I
clicked:
        File -> Export -> Save node as HTML

This failed with these messages in the log pane:
leo_to_html: running ...
leo_to_html: failed writing to /home/bob/c:/BalancePortfolio.html
leo_to_html: done

Examining the source code, I guessed that I should change the
"exportPath" that is set in the leo-to-HTML properties menu:
    Plugins -> Leo-to-html -> Properties

But clicking Properties only displayed this error message in the log
pane:
    Properies menu not supported for Qt gui
Note that "Properties" is misspelled.

I then started leo with the tk gui (--gui=tk).
    The export path default shows "c:\".
    I cleared the export path and clicked OK, but this only displayed
these errors in the log pane:

Error:
    Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/leo/core/leoCommands.py", line
366, in doCommand
    val = command(event)
  File "/usr/share/pyshared/leo/plugins/plugins_menu.py", line 530, in
properties
    self.writeConfiguration()
  File "/usr/share/pyshared/leo/plugins/plugins_menu.py", line 549, in
writeConfiguration
    f = open(self.configfilename, "w")
IOError: [Errno 13] Permission denied: u'/usr/share/pyshared/leo/
core/../plugins/leo_to_html.ini'

So I used an editor to directly edit the .ini file as the super user:

sudo gedit /usr/share/pyshared/leo/plugins/leo_to_html.ini

Change line:
    exportpath = c:\
To:
    exportpath =

Because I also want the node bodies, I changed Line:
    flagjustheadlines = Yes
To:
    flagjustheadlines = No

This worked around my problems with "Save node as HTML".  I hope this
narrative helps others with similar problems and someone who generates
a patch to improve "Save node as HTML".

-- 
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.

Reply via email to