summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2010-11-05 18:49:57 -0200
committerAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2010-11-08 18:37:20 -0200
commita9a971d534d5be12ab32558b55c04b28a86f9e4d (patch)
treea0ca16c331f5cbdf62f5916b9090bb3c7b9499ae /tools
parent8f6a8180e02c8125dca3b3efeb5c22026cb77dbe (diff)
Properly indent enums.
Diffstat (limited to 'tools')
-rw-r--r--tools/qt4-constants-gen.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/qt4-constants-gen.py b/tools/qt4-constants-gen.py
index 4c9d7914..a480f8a9 100644
--- a/tools/qt4-constants-gen.py
+++ b/tools/qt4-constants-gen.py
@@ -217,8 +217,7 @@ enum %(singular)s
self.do_val(flag, singular, flag == flagvalues[-1])
self.h("""\
-
- %s = 0xffffffffU
+ %s = 0xffffffffU
""" % ("_" + singular + "Padding"))
self.h("""\
@@ -264,8 +263,7 @@ enum %(singular)s
self.do_val(val, singular, val == vals[-1])
self.h("""\
-
- %s = 0xffffffffU
+ %s = 0xffffffffU
};
""" % ("_" + singular + "Padding"))
@@ -286,7 +284,8 @@ const int NUM_%(upper-plural)s = (%(last-val)s+1);
name = (val.getAttribute('suffix') or val.getAttribute('name')).replace('_', '')
self.h("""\
%s\
- %s = %s,
+ %s = %s,
+
""" % (format_docstring(val, indent=' * ', brackets=(' /**', ' */')), prefix + name, val.getAttribute('value')))
if __name__ == '__main__':