summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-04-13 21:50:24 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-04-13 21:50:24 -0700
commite977f04fe221d56bac2f0f18d81a1934f6754cb5 (patch)
tree0dbd8464b8e6641b025c36a4538b1510f85f9373
parent2a3435274f0d7d0e3ccb4417e143e5957e820332 (diff)
docs: Add format_indent_attributes documentation
Slightly reword format_indent description.
-rw-r--r--docs/manual.adoc5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/manual.adoc b/docs/manual.adoc
index 9d75ea1..0d31934 100644
--- a/docs/manual.adoc
+++ b/docs/manual.adoc
@@ -1668,7 +1668,9 @@ NOTE: You should use the usual bitwise arithmetics to manipulate the bitmask: to
These flags control the resulting tree contents:
-* [[format_indent]]`format_indent` determines if all nodes should be indented with the indentation string (this is an additional parameter for all saving functions, and is `"\t"` by default). If this flag is on, before every node the indentation string is output several times, where the amount of indentation depends on the node's depth relative to the output subtree. This flag has no effect if <<format_raw,format_raw>> is enabled. This flag is *on* by default.
+* [[format_indent]]`format_indent` determines if all nodes should be indented with the indentation string (this is an additional parameter for all saving functions, and is `"\t"` by default). If this flag is on, the indentations string is printed several times before every node, where the amount of indentation depends on the node's depth relative to the output subtree. This flag has no effect if <<format_raw,format_raw>> is enabled. This flag is *on* by default.
+
+* [[format_indent_attributes]]`format_indent_attributes` determines if all attributes should be printed on a new line, indented with the indentation string according to the attribute's depth. This flag implies <<format_indent,format_indent>>. This flag has no effect if <<format_raw,format_raw>> is enabled. This flag is *off* by default.
* [[format_raw]]`format_raw` switches between formatted and raw output. If this flag is on, the nodes are not indented in any way, and also no newlines that are not part of document text are printed. Raw mode can be used for serialization where the result is not intended to be read by humans; also it can be useful if the document was parsed with <<parse_ws_pcdata,parse_ws_pcdata>> flag, to preserve the original document formatting as much as possible. This flag is *off* by default.
@@ -2546,6 +2548,7 @@ enum +++<a href="#xpath_value_type">xpath_value_type</a>+++
// Formatting options bit flags:
const unsigned int +++<a href="#format_default">format_default</a>+++
const unsigned int +++<a href="#format_indent">format_indent</a>+++
+const unsigned int +++<a href="#format_indent_attributes">format_indent_attributes</a>+++
const unsigned int +++<a href="#format_no_declaration">format_no_declaration</a>+++
const unsigned int +++<a href="#format_no_escapes">format_no_escapes</a>+++
const unsigned int +++<a href="#format_raw">format_raw</a>+++