diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-30 18:10:44 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-30 18:10:44 +0000 |
commit | 6c37db3a755eacba815181c74d00c808c0d578a2 (patch) | |
tree | c192090289ed73f3ef36519fbd890a0b83c1ad5d | |
parent | 109877a3c75cb290c55755dcfc88794d2453669d (diff) |
added one more parameter for saving files with or without formatting
git-svn-id: http://svn.miranda-ng.org/main/trunk@4256 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | include/m_xml.h | 2 | ||||
-rw-r--r-- | src/modules/xml/xmlApi.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/m_xml.h b/include/m_xml.h index 12c7bda369..06231a75e2 100644 --- a/include/m_xml.h +++ b/include/m_xml.h @@ -139,7 +139,7 @@ typedef struct XML_ELEMENT_POS (*positionOfClear)(HXML, int i);
HXML (*parseFile)(LPCTSTR filename, int* datalen, LPCTSTR tag);
- XMLError (*toFile)(HXML node, LPCTSTR filename);
+ XMLError (*toFile)(HXML node, LPCTSTR filename, int withformattiing);
}
XML_API;
diff --git a/src/modules/xml/xmlApi.cpp b/src/modules/xml/xmlApi.cpp index 113f2e9ecd..b010d182d9 100644 --- a/src/modules/xml/xmlApi.cpp +++ b/src/modules/xml/xmlApi.cpp @@ -168,9 +168,9 @@ static LPTSTR xmlapiToString(HXML _n, int* datalen) return XMLNode(_n).createXMLString(0, datalen);
}
-static XMLError xmlapiToFile(HXML _n, LPCTSTR filename)
+static XMLError xmlapiToFile(HXML _n, LPCTSTR filename, int withformatting)
{
- return XMLNode(_n).writeToFile(filename, NULL, NULL);
+ return XMLNode(_n).writeToFile(filename, NULL, withformatting);
}
static void xmlapiAddAttr(HXML _n, LPCTSTR attrName, LPCTSTR attrValue)
|