format: fix flake8 PEP8 warnings
paragraph: add xml:space if leading/trailing whitespace