Changes
Jump to navigation
Jump to search
User:Luigi.scarso/luatex lunatic (view source)
Revision as of 01:56, 30 July 2009
, 01:56, 30 July 2009→dbxml
def managepara(c,res):
if c.tag == 'para' and (len(c.text.strip()) > 0is not None):
res.append(c.text.strip()+r"\par")
if c.tag == 'para' and (len(c.getchildren())>0):
res = getArtitleByTitle(title=title)
if res is not None : res = res.replace('&',r'\&') res = res.replace('#',r'\#') else: res = ''
open(filename,'wb').write( '\n'.join((preamble,res,postamble)) )