On Tuesday, December 6, 2016 at 12:00:39 PM UTC-6, Edward K. Ream wrote: > > > > On Tue, Dec 6, 2016 at 11:40 AM, Largo84 <larg...@gmail.com> wrote: > >> @auto-rst files are not reading correctly. I'm even getting the dreaded >> [big text warning]. >> > > >> The @auto-md files are restoring fine, but all of the @auto-rst files are >> coming in 'flat'. >> > > Thanks for the report. I'll attempt a fix today. >
Rev cd0fcb4 is that attempt. How does it work for you? Here is the checkin log: QQQQQ Fixed several serious bugs in the rst importer/writer. Improved unit tests all pass. 1. The reader and writer now use a common set of underlines, defined at the top level of importers.leo_rst. This set *does* include '#' at the very end, so that: a) The reader always recognizes '#' as an over/underline. b) The writer effectively reserves '#' for the user. 2. rst_i.find_parent now inserts placeholder lines as needed. And they *could* be needed if the input file is inconsistently underlined. This won't happen when the writer writes the file, but it could happen when files are created outside of Leo. 3. Fixed a serious bug in rst_i.is_lookahead_line, that prevented, for example, the following from being recognized as underlined: top ==== QQQQQ 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 leo-editor+unsubscr...@googlegroups.com. To post to this group, send email to leo-editor@googlegroups.com. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.