INNER CODE UNIT · Python
genPage
schwabe/ics-openvpn · main/misc/genFAQ.py:30
def genPage(javafile, lang):
#{R.string.faq_howto_title, R.string.faq_howto},
out =""
notmatched = None
for l in javafile:
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)
section = """<h2>
<a name="%(titleid)s"></a>