diff base/XmlExportable.cpp @ 1429:48e9f538e6e9

Untabify
author Chris Cannam
date Thu, 01 Mar 2018 18:02:22 +0000
parents 1424aa29ae95
children f97d64b8674f
line wrap: on
line diff
--- a/base/XmlExportable.cpp	Thu Mar 01 14:43:40 2018 +0000
+++ b/base/XmlExportable.cpp	Thu Mar 01 18:02:22 2018 +0000
@@ -41,11 +41,11 @@
 XmlExportable::encodeEntities(QString s)
 {
     s
-	.replace("&", "&")
-	.replace("<", "&lt;")
-	.replace(">", "&gt;")
-	.replace("\"", "&quot;")
-	.replace("'", "&apos;");
+        .replace("&", "&amp;")
+        .replace("<", "&lt;")
+        .replace(">", "&gt;")
+        .replace("\"", "&quot;")
+        .replace("'", "&apos;");
 
     return s;
 }
@@ -77,7 +77,7 @@
     static int maxId = 0;
     
     if (idMap.find(object) == idMap.end()) {
-	idMap[object] = maxId++;
+        idMap[object] = maxId++;
     }
 
     return idMap[object];