syntax-highlighting
syntax-highlighting copied to clipboard
remove unnecessary HTML tags if linenumbering is not requred
Description
Remove unnecessarily HTML table tags when line numbers are disabled
Strips
from the beginning and the corresponding
closing tags at the end from the highlighted code. The table is used for
line numbering but when this is disabled it has no use.
Futhermore it changes the wrapping because the centering of the code broke otherwise.
To make that possible process_html is now passed a new parameter linenos
and executed before the addition of the centering tags to facilitate the
stripping.
Resolves: #15 Checklist:Please replace the space inside the brackets with an x and fill out the ellipses if the following items apply:
|
Could someone check this on windows please? Also I'm not sure if I did the squashing and merging right, it's the first time I do that.