difference between @auto and @clean node regarding generating rst file

35 views
Skip to first unread message

Austin(Xu) Wang

unread,
Sep 7, 2019, 8:39:44 AM9/7/19
to leo-editor
Dear Leo Users,

I have one node "@auto filename.rst", under that node, there are a few chapters of the rst file, which works great when I press save, the filename.rst will be generated.
If I change the node to "@clean filename.rst", I am not able to save. Leo complains that:

The following were not written because of errors:
@clean filename.rst

Is it possible to use @clean for generating rst?
I cannot use @auto since the auto node is with no tnode in the .leo file, which makes LeoVUE failed to load.  https://github.com/kaleguy/leovue/issues/9

PS. what's the reason for not keeping the body of @auto node inside the leo file?

BR,Austin





Austin(Xu) Wang

unread,
Sep 7, 2019, 8:42:54 AM9/7/19
to leo-editor
also tried @nosent filename.rst with no luck.

Rob

unread,
Sep 7, 2019, 3:40:38 PM9/7/19
to leo-editor
A few thoughts, perhaps they're relevant:
  1. @clean write errors may be caused by lack of @others or <<section>> references. Child nodes will need one or the other of those to work (or @all in the root node).
  2. Yes, you can create xxx.rst files with @clean. However, the headings aren't auto-created as they are with @auto-rst., so you have to manually add them (kind of a pain, IMO).
  3. As to your PS question, that's a matter of personal preference and how big the xxx.leo file will become. I prefer external files (most of the time) as I can open and use with other editors and tools (e.g. pandoc).
HTH
Rob...

Austin(Xu) Wang

unread,
Sep 7, 2019, 11:50:22 PM9/7/19
to leo-editor
  1. As to your PS question, that's a matter of personal preference and how big the xxx.leo file will become. I prefer external files (most of the time) as I can open and use with other editors and tools (e.g. pandoc).

Thanks Rob..I see. I switched to use @rst node. Compare with @auto-rst It requires an extro rst3 command, but can live with leoVUE peacefully.

Reply all
Reply to author
Forward
0 new messages