> 1. In some (rare?) cases, the @others of a class node is not indented. All child nodes contain the leading whitespace that should have preceded the @others.
> >> This bug affects all classes in >> mypy/test-data/stdlib-samples/3.2/test/test_textwrap.py except the first >> class. >> >> Yes, indeed. These classes have some triple quoted strings which have zero indentation. If the at-others were indented, those strings would change their value, and that could be dangerous change. So, I believe it is better left to the user to decide what to do about those strings. One possible solution would be to define those strings at the module level as constants and later in the body of the class, use those constants and not triple quoted strings or to replace triple quoted string with the single quoted string and add backslashes where necessary. Both decisions, I believe would be better left to user than let the importer guess what the user would like. Or we could introduce a new kind of node (for example node whose headline is prefixed with '#') which would not be indented during the write operation. That would cause some changes in the read/write code, but perhaps this would be a good and sensible addition to the Leo's outline power. Vitalije -- 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/afb6ef54-9ab3-4f38-b216-4bc9b38e0180n%40googlegroups.com.
