From 8d98d5fa13929453a0d30a7dd5ca92203cdc0af2 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Thu, 7 Aug 2008 19:03:00 +0000 Subject: Bugfix: MSVC complaining about the length of the embeded theme string. svn-id: r33685 --- gui/themes/default.inc | 759 ++++++++++++++++++++++++++++++++++++++++++++- gui/themes/makedeftheme.py | 13 +- 2 files changed, 766 insertions(+), 6 deletions(-) (limited to 'gui/themes') diff --git a/gui/themes/default.inc b/gui/themes/default.inc index fa7f3b5236..9295e31a7d 100644 --- a/gui/themes/default.inc +++ b/gui/themes/default.inc @@ -1 +1,758 @@ -" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " diff --git a/gui/themes/makedeftheme.py b/gui/themes/makedeftheme.py index d9729bc33f..c2ece4c26b 100644 --- a/gui/themes/makedeftheme.py +++ b/gui/themes/makedeftheme.py @@ -6,15 +6,18 @@ import re def main(): theme_file = open(sys.argv[1], "r") def_file = open("default.inc", "w") + comm = re.compile("\/\*(.*?)\*\/", re.DOTALL) try: - output = "\"" + output = "" for line in theme_file: - if (len(line)): - output += (line.rstrip("\n\r\t ").lstrip() + " ") + output += line.rstrip("\r\n\t ").lstrip() + " \n" - output = re.sub("\/\*(.*?)\*\/", "", output).replace("\t", " ").replace(" ", " ") - def_file.write(output + "\"\n") + output = re.sub(comm, "", output).replace("\t", " ").replace(" ", " ").splitlines() + + for line in output: + if line and not line.isspace(): + def_file.write("\"" + line + "\"\n") finally: theme_file.close() def_file.close() -- cgit v1.2.3