Skip to content
Snippets Groups Projects

Resolve "Documentation PDF: erreurs à la compilation"

Merged David Dorchies requested to merge 656-documentation-pdf-erreurs-a-la-compilation into devel
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -226,7 +226,7 @@ def buildDocForLang(lang):
mergedDocFilename = mergedDocFilenamePrefix + lang
mergedDocOutputPath = os.path.join(pdfBuildDir, mergedDocFilename)
# remove internal links @TODO convert them to hyperref ?
s = re.sub(r'\[([^/]+)\]\([^ ]+\.md\)', r'\1', s)
s = re.sub(r'\[([^/\^]+?)\]?\([^ ]+?\.md\)', r'\1', s)
with open('{}.md'.format(mergedDocOutputPath), 'w') as f:
f.writelines(s)
Loading