tig / winprint

winprint 2.0 - Advanced source code and text file printing. The perfect tool for printing source code, web pages, reports generated by legacy systems, documentation, or any text or HTML file. It works interactively or from the command line making it great for single users or whole enterprises. Works great with Powershell.
https://tig.github.io/winprint/
MIT License
73 stars 5 forks source link

Prism-based Syntax Highlighting does not wrap long lines correctly #12

Closed tig closed 4 years ago

tig commented 4 years ago

The HTML rendering engine WinPrint uses (github.com/litehtml) does not support the long-line wrapping features of CSS required by WinPrint. As a result, long lines are not wrapped correctly (or at all).

See https://github.com/litehtml/litehtml/issues/117

Workaround: Use the "text/plain" Content Type Engine by specifying --content-type-engine text/plain or -e content-type-engine text/plain on the command line. No syntax highlighting, but at least text will wrap correctly.

tig commented 4 years ago

Addressed via AnsiCte/Pygments.