On Sat, Apr 3, 2021 at 3:12 AM Viktor Ransmayr <[email protected]> wrote:
> H > >> The ekr-rst-preformat branch contains the proposed fix. See PR #1877 >> <https://github.com/leo-editor/leo-editor/pull/1877>. >> > > Works like a charm. - Thanks a lot for the quick fix! > You're welcome. However, after some thought *I am not going to support @rst-preformat*. Instead, I'll create a conversion script, available via a new command, say 'convert-legacy-rst-trees', that will do the following: 1. Convert @rst-preformat nodes as follows: - Change @rst-preformat to @rst-no-head. - Change p.b by adding an initial line containing "::" and indenting all other non-blank lines by 4 spaces. 2. Scan for nodes containing `@ @rst-options` *outside* of @rst trees, converting them as follows: - If the node contains default_path=<path>, change the headline to @path <path> This should give the desired effect, because the rst3 honors @path inside @rst trees. I'll tweak the conversion script as necessary to make everything work. Edward -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/CAMF8tS31J58gxbcp11KQ-CCY9LoQWS00zTkYSSRcvf11Keq_vw%40mail.gmail.com.
