Leo now supports rST round-tripping. Here is the commit log for rev 1811 of the trunk:
QQQ Rewrote writeAtAutoFile and underline. Simple round-tripping now works, a major step forward. All unit tests pass. Significant picky works remains: 1. The rst unit test fails if there is a leading blank line. Other blank-line problems may exist. At present, the check for trailing line is disabled for rst imports. 2. "overly-underlined" lines will cause the import checks to fail. It would be wrong to insist on preserving such lines, imo. The solution is to do a forgiving compare for under/overlines in the import check logic. This promises to be a bit hairy, but it will only be done if self.isRst is True, so it shouldn't pollute other importers. Aside from these issues, you should now feel free to report any other @auto problems for rST files. QQQ By "overly underlined" I mean a section name that is followed (or preceded) by "too many" underlining characters. This is perfectly legal in rST files, and common in hand-generated files. We don't want to preserve such extraneous characters, and it would be quite clumsy to do so. Removing such extra characters would be one kind of "normalization", to use Ville's phrase. Other than these two points, I don't envisage significant other work. However, I could be wrong: getting things to "just work" can be complicated, and I may have forgotten something. To repeat: Aside from these issues, you should now feel free to report all @auto problems for rST files. Edward P.S. I probably will support @auto-rst instead of the .txt==rST convention, but I don't think that will affect much. EKR --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~----------~----~----~----~------~----~------~--~---
