summaryrefslogtreecommitdiff
path: root/main/misc/genFAQ.py
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2015-03-19 11:31:30 +0100
committerArne Schwabe <arne@rfc2549.org>2015-03-19 11:31:30 +0100
commit26249c354b483a0e87979ed07744bad17a65eb49 (patch)
tree2d5d3ba011e0fc0f50219c3e388d2bf713fb8fd1 /main/misc/genFAQ.py
parentc59e17ec3979728e6d9e24308e509d9273f2d230 (diff)
parentf7058a378d9831821d319c07aac4f5034555fb71 (diff)
Merge
Diffstat (limited to 'main/misc/genFAQ.py')
-rwxr-xr-xmain/misc/genFAQ.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/main/misc/genFAQ.py b/main/misc/genFAQ.py
index ef19a9d1..d4ddf032 100755
--- a/main/misc/genFAQ.py
+++ b/main/misc/genFAQ.py
@@ -33,10 +33,16 @@ def getString(strid,lang):
def genPage(javafile, lang):
#{R.string.faq_howto_title, R.string.faq_howto},
out =""
- out+= header
+
+ notmatched = None
for l in javafile:
- m = re.search("FAQEntry.*\((.*),(.*), R.string.([a-z_]+),.*R.string.([a-z_]+)\)", l)
+
+ m = re.search("FAQEntry.*\((.*),(.*), R.string.([a-z0-9_]+),.*R.string.([a-z0-9_]+)\)", l)
if m:
+ if notmatched and notmatched.strip():
+ print "Line did not match: %s" % notmatched
+
+ notmatched = None
(ver1, ver2, title, body) = m.groups()
verHeader = getVerHeader(ver1.strip(), ver2.strip(), lang)
@@ -48,7 +54,11 @@ def genPage(javafile, lang):
if body == "faq_system_dialogs_title":
out += "%s\n" % getString("faq_system_dialog_xposed",lang)
- return out
+ elif header:
+ notmatched = l
+
+
+ return header + out
def getVerHeader(startVersion, endVersion, lang):
if startVersion == "Build.VERSION_CODES.ICE_CREAM_SANDWICH":