diff options
| author | Gubolin <gubolin@fantasymail.de> | 2014-09-12 15:42:12 +0200 |
|---|---|---|
| committer | Gubolin <gubolin@fantasymail.de> | 2014-09-12 15:42:12 +0200 |
| commit | f70276f603a346f51bacb946fb6e615bb2a09f66 (patch) | |
| tree | b16a980d5364c239f089a0d712029949aff04750 | |
| parent | 8f7d1833f6e6b304e706bb84848dbf86a80834c8 (diff) | |
| download | snap-xml_beautifier.tar.gz snap-xml_beautifier.zip | |
beautify xmlxml_beautifier
| -rw-r--r-- | .gitmodules | 3 | ||||
| -rwxr-xr-x | snap.html | 1 | ||||
| -rw-r--r-- | store.js | 4 | ||||
| m--------- | vkBeautify | 0 |
4 files changed, 6 insertions, 2 deletions
diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..c2d8927 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "vkBeautify"] + path = vkBeautify + url = https://github.com/vkiryukhin/vkBeautify @@ -18,6 +18,7 @@ <script type="text/javascript" src="locale.js"></script> <script type="text/javascript" src="cloud.js"></script> <script type="text/javascript" src="sha512.js"></script> + <script type="text/javascript" src="vkBeautify/vkbeautify.js"></script> <script type="text/javascript"> var world; window.onload = function () { @@ -97,7 +97,7 @@ XML_Serializer.prototype.serialize = function (object) { this.flushMedia(); xml = this.store(object); this.flush(); - return xml; + return vkbeautify.xml(xml); }; XML_Serializer.prototype.store = function (object, mediaID) { @@ -135,7 +135,7 @@ XML_Serializer.prototype.mediaXML = function () { ); xml = xml + str; }); - return xml + '</media>'; + return vkbeautify.xml(xml + '</media>'); }; XML_Serializer.prototype.add = function (object) { diff --git a/vkBeautify b/vkBeautify new file mode 160000 +Subproject ecfc3b9e2b911ad8ebd49600c4089aca30619f2 |
