On 09/03/2023 22:11, Vincent Lefevre wrote:
libreoffice --headless --convert-to pdf file.txtproduces a PDF of better quality (fewer spacing issues).
I was assuming something like markdown/reStructuredText/asciidoc/etc. instead of plain text. As the last resort
:TOhtmlvim command to get at least syntax highlighting. Certainly the approach with browser requires a proper CSS for text width, hyphenations, etc.