summaryrefslogtreecommitdiff
path: root/scripts/code_tools/fix_xml_indentations.py
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2024-06-10 20:10:47 +0300
committerGitHub <noreply@github.com>2024-06-10 20:10:47 +0300
commit749f8c9c7d27c5f4675a96e37d7c9a733505121e (patch)
treeb2853d87789dbb84d6c26c259eab6639d3a7e482 /scripts/code_tools/fix_xml_indentations.py
parent32fcefc058ae38eff0572326ef3efd1c7b343144 (diff)
parentf74c10c4ec6435471bac84473fe865f90843c2df (diff)
Merge pull request #1585 from secondlife/signal/trim-trailing
Trim trailing whitespace
Diffstat (limited to 'scripts/code_tools/fix_xml_indentations.py')
-rw-r--r--scripts/code_tools/fix_xml_indentations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/code_tools/fix_xml_indentations.py b/scripts/code_tools/fix_xml_indentations.py
index 9c8a1fc04b..e317e4f7f6 100644
--- a/scripts/code_tools/fix_xml_indentations.py
+++ b/scripts/code_tools/fix_xml_indentations.py
@@ -72,7 +72,7 @@ def save_xml(tree, file_path, xml_decl, indent_text=False, indent_tab=False, rm_
if rm_space:
xml_string = xml_string.replace(' />', '/>')
- xml_decl = (xml_decl if (xml_decl and not rewrite_decl)
+ xml_decl = (xml_decl if (xml_decl and not rewrite_decl)
else '<?xml version="1.0" encoding="utf-8" standalone="yes" ?>')
try: