Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
print 'Found doc string in doconce format:'
print 'Running doconce on help file', stem + '.do.txt'
doc = doconce_format('html', doc, filename_stem=stem,
cleanup=False)
# grab parts
pattern = r'()'
m = re.search(pattern, doc, flags=re.DOTALL)
if m:
doc = m.group(1) + '\n'
doc = doc.replace('\n', '')
files = [stem + '.do.txt',
stem + '.html',
'.' + stem + '_html_file_collection']
#for name in files:
# os.remove(name)
except DocOnceSyntaxError, e:
print e
doc = wrap_in_pre_tags(doc)
else:
doc = wrap_in_pre_tags(doc)
return doc