-
Notifications
You must be signed in to change notification settings - Fork 80
Description
Information on whitespace handling is located in several different places in the interface and in several different place in the documentation. This make it hard to get a sense of the whole and how the various parts and settings affect each other. I have been attempting to write a topic that stitches the whole picture together, but I have a number of questions:
-
There are two different setting that deal with schema aware whitespace handling: Editor>Format>XML>Schema aware format and indent and Editor>Edit modes>Author>Schema aware>Schema aware normalization, format and indent. The first is obviously specific to author mode, but the second is general and should presumably apply to any mode. What is the actual difference between them and what do they affect?
-
For elements listed in the default space list, is the content normalized and left as is, or is it normalized and then formatted and indented?
-
If there are elements listed in the Preserve space, Default space, and Mixed content, and Schema aware format and indent are enabled, which takes precedence, the schema definitions or the content of these lists?
-
There are three menu items that do indenting:
- Document>Source>Format and Indent,
- Document>Source>Indent Selection
- Document>Source>Format and Indent Element
Why does the second one not include the word "format". Is the functionality different? More limited?
-
http://www.oxygenxml.com/doc/ug-editor/#topics/author-whitespace-handling.html list two sets of formatting and indenting rules, one for when a document is opened in author, and one for when it is saved.
- Why would the rules be different for opening and for saving?
- Which of these rules would be applied when switching from author mode to text mode (or grid mode).
- Which would be applied when switching from text mode or grid mode to author mode?
- Is the difference one that the reader actually needs to know about? In other words, is there some decision that the reader needs to make that depends on knowing the exact details of these rules and how they differ?
- The section on the rules on opening end with "Otherwise the white-spaces are ignored." In this context it is not clear what "ignored" means. Does it mean that the white spaces are suppressed or that they are included as is?
-
What does zero-size indent mean? Does it simply mean that There is no indenting of the content -- that every line starts at the left margin?
-
http://www.oxygenxml.com/doc/ug-editor/#tasks/how-to-use-zero-size-indent.html says to use zero indent, disable Detect indent on open and set the indent to zero, but there is an option that says Use zero-indent if detected. Shouldn't the topic say, if Detect indent on open is selected, select *Use zero-indent if detected" and set the indent to zero?
-
What is the difference between Preferences>Editor>Format>Indent with tabs and Preferences>Editor>Indent with tabs?