Author: shadowmaster
Date: Wed Mar 23 04:20:20 2011
New Revision: 48983
URL: http://svn.gna.org/viewcvs/wesnoth?rev=48983&view=rev
Log:
wmlindent: Update for #ifhave, #ifnhave
Modified:
trunk/data/tools/wmlindent
Modified: trunk/data/tools/wmlindent
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmlindent?rev=48983&r1=48982&r2=48983&view=diff
==============================================================================
--- trunk/data/tools/wmlindent (original)
+++ trunk/data/tools/wmlindent Wed Mar 23 04:20:20 2011
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+# -*- coding: utf-8 -*-
"""\
wmlindent - re-indent WML in a uniform way.
@@ -68,7 +69,7 @@
def is_directive(str):
"Identify things that shouldn't be indented."
- for prefix in ("#ifdef", "#ifndef", "#else", "#endif", "#define",
"#enddef", "#undef"):
+ for prefix in ("#ifdef", "#ifndef", "#ifhave", "#ifnhave", "#else",
"#endif", "#define", "#enddef", "#undef"):
if str.startswith(prefix):
return True
return False
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits