On Nov 3, 10:27 am, Terry Brown <[email protected]> wrote: > strictly speaking Leo should not parse anything in a CDATA block.
I *think* the html scanner can treat cdata as a kind of comment, for purposes of verification. The html parser, that is, xmlScanner.startshelper, should also know about cdata. Neither should be a big deal. I was worried that cdata could contains non-text data, but that's not so. But the worry got me thinking about indentation. In *most* cases, leading whitespace in cdata is not likely to be more significant than other leading whitespace. If it is significant, Leo won't necessarily be able to preserve it exactly if it is underindented. That train of thought got me thinking of supporting a "non-indented" mode for Leo, where a) Leo's write code never adds node-level indentation and Leo's read code never strips off node-level indentation. But that would be almost unbearably ugly and very non- Leonine. I don't think this should ever happen. In short, it's possible to conceive of valid .html files that Leo can not represent faithfully with @import or @file. The reasonable alternative would be to use @edit, which has no indentation problems. Edward -- 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.
