about the @auto-rst

35 views
Skip to first unread message

HaveF

unread,
May 9, 2013, 5:08:30 AM5/9/13
to Leo-editor-googlegroup
Hi :-)

I import a rst file with @auto-rst, but after save the leo file.
(change nothing about rst file)

Some thing happen...
like(I use color diff, can't see here):

 18 Requirements
 19 ------------++++++++++++

leo change - to +

like:

  31 CentOS 6
  32 ~~~~~~~~********

leo change ~ to *

this is a feature?

--
--
Sincerely,

HaveF

Edward K. Ream

unread,
May 9, 2013, 9:19:53 AM5/9/13
to leo-editor
On Thu, May 9, 2013 at 4:08 AM, HaveF <iamap...@gmail.com> wrote:

I import a rst file with @auto-rst, but after save the leo file.
(change nothing about rst file)

Some thing happen...
[snip]

leo change ~ to *

this is a feature?

I wouldn't call it a feature, but I wouldn't call it a bug unless the meaning changes.

In other words, the import (read) logic, doesn't remember the underling characters.

If you create rst files with the rst3 command, you can specify the underlining characters to be used in the @file node with the underline_characters (default: #=+*^~”’`-:>_) rst option.  See: http://leoeditor.com/rstplugin3.html#id10


Edward

HaveF

unread,
May 9, 2013, 9:38:27 PM5/9/13
to leo-e...@googlegroups.com
Thanks, EKR ;-)

I compare the default result with original rst file, and add such option:

@ @rst-options
underline_characters=-~#
@c

but the log panel says:

unsafe @auto-rst

body text will be ignored in
 @auto-rst install.txt

not written: D:\xxxx\doc\install.txt

 
Search "unsafe @auto-rst", get nothing.
Any idea?




Edward

HaveF

unread,
May 9, 2013, 9:49:50 PM5/9/13
to Leo-editor-googlegroup
Solved...
I should use @rst node;-)




Edward

--
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/LYehZCNet4I/unsubscribe?hl=en-US.
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?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
--
Sincerely,

HaveF
Reply all
Reply to author
Forward
0 new messages