Fixed paste_as_headlines to remove a unicode glitch:

-    # Leo won't display curly quotes properly, so replace them with normal 
quotes
-    clipText = clipText.replace(g.u('” “'),'" "')

Just deleted it, can't really see what it was supposed to do, and it was 
throwing an encoding error.

Also, I messed with it so now if the text copied to the clipboard for pasting 
as headlines includes indentation, that indentation is reflected in the pasted 
nodes.

And pushed node encryption changes to stickynotes.py as shown by the docstring 
below.

I think stickynotes.py may still have a bug that converts non-ascii to ???? in 
some cases, but that's separate.

Cheers -Terry

Simple "sticky notes" feature (popout editors)

Adds the following (``Alt-X``) commands:

``stickynote``
  pop out current node as a sticky note
``stickynoter``
  pop out current node as a rich text note
``stickynoteenc``
  pop out current node as an encrypted note
``stickynoteenckey``
  enter a new en/decryption key

Sticky notes are synchronized (both ways) with their parent Leo node.

Encrypted mode requires the python-crypto module.

The first time you open a note in encrypted mode you'll be asked for a pass 
phrase.  That phrase will be used for the rest of the session, you can change 
it with ``Alt-X`` ``stickynoteenckey``, but probably won't need to.

The encrypted note is stored in base64 encoded *encrypted* text in the parent 
Leo node, if you forget the pass phrase there's no way to un-encrypt it again.  
Also, you must not edit the text in the Leo node.

When **creating an encrypted note**, you should **start with and empty node**.  
If you want to encrypt text that already exists in a node, select-all cut it to 
empty the node, then paste it into the note.

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