As of 97ee17d, the new importers for xml and html are now functional. All unit tests pass.
These importers embody a major change in attitude. Please read carefully. All comments welcome. The perfect import checks in i.check now compare leading whitespace (lws) only for *strict *languages. Iirc, python and coffeescript are the only strict languages. As a result, *importers are allowed to regularize lws.* The overridden xlm_i.undent does just that. It's simple and easy to understand. For the first time *ever*, it's easy to explain how indentation works, at least for xml and html ;-) The code generators will properly indent all xml/html tags mentioned in @data import_xml_tags or @data import_html_tags. This would be a good to do for javascript also. So now @auto can change the imported files *without* inserting @ignore. *Important*: @auto no longer marks files dirty, so even without @ignore you have to actively change the file before it will actually be written to the file system. If you do choose to write the file, git will always show you what changes were made. If you don't like them, you can just revert the file and insert @ignore yourself! To complete the picture, Leo should raise a *single *dialog warning about @auto files that would be changed if they were saved. That will happen soon. Edward P.S. I've just posted the code for xml_i.undent at the end #334 <https://github.com/leo-editor/leo-editor/issues/334>. Hit Ctrl-End :-) EKR -- 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
