This fixes the broken indentation, while code still does scroll if a line it too long.
The only downside: It creates a weird padding at the end of file listings, that I cannot explain. But I can live with that.
Because the lines have to be display: inline-block instead of block to work well with white-space: pre, I had to remove the option to restore the default code wrapping behaviour (wrap line if too long).
fixes #9
This fixes the broken indentation, while code still does scroll if a line it too long.
The only downside: It creates a weird padding at the end of file listings, that I cannot explain. But I can live with that.
Because the lines have to be
display: inline-block
instead ofblock
to work well withwhite-space: pre
, I had to remove the option to restore the default code wrapping behaviour (wrap line if too long).