summaryrefslogtreecommitdiff
path: root/src/pugixml.hpp
diff options
context:
space:
mode:
authorhalex2005 <halex2005@e1.ru>2015-04-14 00:56:23 +0500
committerhalex2005 <halex2005@e1.ru>2015-04-14 00:56:23 +0500
commit6766f35338fafca445faf3c8a271ef558d6ec963 (patch)
treee99fce83ca7275213bcb23886cf6484a0197856f /src/pugixml.hpp
parent9539c488c29e7c2c06afa63abce70785cb5d15c5 (diff)
add align each attribute on new line support with format_indent_attribute
Diffstat (limited to 'src/pugixml.hpp')
-rw-r--r--src/pugixml.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pugixml.hpp b/src/pugixml.hpp
index d59f864..36ed955 100644
--- a/src/pugixml.hpp
+++ b/src/pugixml.hpp
@@ -203,9 +203,12 @@ namespace pugi
// Open file using text mode in xml_document::save_file. This enables special character (i.e. new-line) conversions on some systems. This flag is off by default.
const unsigned int format_save_file_text = 0x20;
+ // Set each attribute to new line
+ const unsigned int format_each_attribute_on_new_line = 0x40;
// The default set of formatting flags.
// Nodes are indented depending on their depth in DOM tree, a default declaration is output if document has none.
const unsigned int format_default = format_indent;
+ const unsigned int format_indent_attributes = format_indent | format_each_attribute_on_new_line;
// Forward declarations
struct xml_attribute_struct;