this commit message is wrong,

this change makes xml output a bit nicer was adding space, eg
 "<Theme >" --> "<Theme>"

On Mon, Feb 13, 2012 at 10:14 PM, Campbell Barton <[email protected]> wrote:
> Revision: 44085
>          
> http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=44085
> Author:   campbellbarton
> Date:     2012-02-13 11:14:12 +0000 (Mon, 13 Feb 2012)
> Log Message:
> -----------
> more tweaks, outline is lighter then the color given so compensate a bit.
>
> Modified Paths:
> --------------
>    trunk/blender/release/scripts/modules/rna_xml.py
>
> Modified: trunk/blender/release/scripts/modules/rna_xml.py
> ===================================================================
> --- trunk/blender/release/scripts/modules/rna_xml.py    2012-02-13 08:06:44 
> UTC (rev 44084)
> +++ trunk/blender/release/scripts/modules/rna_xml.py    2012-02-13 11:14:12 
> UTC (rev 44085)
> @@ -150,13 +150,14 @@
>
>         # 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)))
>
>
> _______________________________________________
> Bf-blender-cvs mailing list
> [email protected]
> http://lists.blender.org/mailman/listinfo/bf-blender-cvs



-- 
- Campbell
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to