Better indentation for wms capabilities example

This commit is contained in:
Bruno Binet
2013-03-03 17:37:15 +01:00
parent f897c743b1
commit d754c34a04
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -13,7 +13,8 @@ xhr.open('GET', url, true);
xhr.onload = function() {
if (xhr.status == 200) {
result = parser.read(xhr.responseXML);
document.getElementById('log').innerHTML = window.JSON.stringify(result);
document.getElementById('log').innerHTML =
window.JSON.stringify(result, undefined, 2);
}
};
xhr.send();