Merge branch 'fix_unmatched' into 'master'

Fix unmatched text or elements and empty sections in PDF

See merge request !5
3 jobs for master in 10 seconds (queued for 1 second)