Hi Terry,

Thanks is working like a charm. I can put the "always put an empty space after the word" in the documentation, once the script is published, but now I wonder, there is any way to enforce it. I know that Leo can capture interactively the input and made things with it, like happens with "@language", ¿so could happen that if there is any @keyword in the header, inserts automatically a space after it?

This has not much priority, mostly I'm using the script by myself, but I'm curious about future developments.

Cheers,

Offray

El 05/01/14 22:29, Terry Brown escribió:
On Sun, 05 Jan 2014 22:01:16 -0500
Offray Vladimir Luna Cárdenas <[email protected]> wrote:

if not (node.h.startswith('@config') or
              node.h.startswith('@ignore') or
              node.h.startswith('@biblio') or
              node.h.startswith('@ref')):

If there's always a space after the word, this might work:

   if node.h.split()[0] not in ('@config', '@ignore', '@biblio', '@ref'):

Will look at the other question.

Cheers -Terry


--
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to