diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-02-13 15:14:12 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-02-13 15:14:12 +0400 |
commit | aee007c6641bbfb0565917869ee6f5bf0960f355 (patch) | |
tree | f4b2b105e918ca130e9e1cc052602a717d6c78e6 | |
parent | 764c8c76ea61e59c95bb46351b22592690deb40a (diff) |
more tweaks, outline is lighter then the color given so compensate a bit.
-rw-r--r-- | release/scripts/modules/rna_xml.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/release/scripts/modules/rna_xml.py b/release/scripts/modules/rna_xml.py index c39d904bf08..eae7840b69b 100644 --- a/release/scripts/modules/rna_xml.py +++ b/release/scripts/modules/rna_xml.py @@ -150,13 +150,14 @@ def rna2xml(fw=print_ln, # declare + attributes if pretty_format: - tmp_str = "<%s " % value_type_name - tmp_ident = "\n" + ident + (" " * len(tmp_str)) - - fw("%s%s%s>\n" % (ident, tmp_str, tmp_ident.join(node_attrs))) - - del tmp_str - del tmp_ident + if node_attrs: + tmp_str = "<%s " % value_type_name + tmp_ident = "\n" + ident + (" " * len(tmp_str)) + fw("%s%s%s>\n" % (ident, tmp_str, tmp_ident.join(node_attrs))) + del tmp_str + del tmp_ident + else: + fw("%s<%s>\n" % (ident, value_type_name)) else: fw("%s<%s %s>\n" % (ident, value_type_name, " ".join(node_attrs))) |