force html output (needed with lxml greater that 4.6.5)

This commit is contained in:
Sébastien Loriot 2023-01-11 16:54:02 +01:00
parent 1d6830501d
commit 56a852403c
2 changed files with 4 additions and 4 deletions

View File

@ -74,7 +74,7 @@ jobs:
run: |
set -x
sudo apt-get update && sudo apt-get install -y graphviz ssh bibtex2html
sudo pip install lxml==4.6.3
sudo pip install lxml
sudo pip install pyquery
wget --no-verbose -O doxygen_exe https://cgal.geometryfactory.com/~cgaltest/doxygen_1_8_13_patched/doxygen
sudo mv doxygen_exe /usr/bin/doxygen

View File

@ -57,7 +57,7 @@ def write_out_html(d, fn):
f.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n')
f.write('<html xmlns=\"https://www.w3.org/1999/xhtml\">')
if d.html() is not None:
f.write(d.html())
f.write(d.html(method='html'))
f.write('\n')
f.write('</html>\n')
f.close()