qwat / QWAT

TEKSI Water module (project QWAT) - QGIS project
https://www.teksi.ch
GNU General Public License v2.0
58 stars 31 forks source link

Fixes style for QWAT_Feature_grid #263

Closed lbartoletti closed 6 years ago

lbartoletti commented 6 years ago

Freeplane export a html with a style that breaks sphinx style.

I remove some items in the mindmap export as html and run some POSIX sed commands.

I don't know if I have to put this sed scripts since I think it's only a (dirty) workaround for now.

elemoine commented 6 years ago

Maybe you can just paste the sed commands here for reference.

lbartoletti commented 6 years ago

POSIX sed (without GNU extension)

sed -i.bak '/<style type="text\/css">/,/<\/style>/d' QWAT_Feature_grid.html
sed -i.bak '/<body bgcolor=#ffffff>/,/<ul>/{//p;d;}' QWAT_Feature_grid.html
sed -i.bak -e '1s/<li>/<span style=\"font-style: italic;\">/' -e '1,/<li>/s//<span style=\"font-style: italic;\">/' QWAT_Feature_grid.html
sed -i.bak -e '1s|</li>|</span>|' -e '1,/<\/li>/s//<\/span>/' QWAT_Feature_grid.html
rm -f QWAT_Feature_grid.html.bak