more tweaks, outline is lighter then the color given so compensate a bit.

This commit is contained in:
Campbell Barton
2012-02-13 11:14:12 +00:00
parent 764c8c76ea
commit aee007c664

View File

@@ -150,13 +150,14 @@ def rna2xml(fw=print_ln,
# declare + attributes # declare + attributes
if pretty_format: if pretty_format:
tmp_str = "<%s " % value_type_name if node_attrs:
tmp_ident = "\n" + ident + (" " * len(tmp_str)) 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))) fw("%s%s%s>\n" % (ident, tmp_str, tmp_ident.join(node_attrs)))
del tmp_str
del tmp_str del tmp_ident
del tmp_ident else:
fw("%s<%s>\n" % (ident, value_type_name))
else: else:
fw("%s<%s %s>\n" % (ident, value_type_name, " ".join(node_attrs))) fw("%s<%s %s>\n" % (ident, value_type_name, " ".join(node_attrs)))