You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using glow to render markdowns, it seems like there are a lot of useless spaces at the end of lines. You can see in this screenshot (run with glow github.com/charmbracelet/glow | bat -A, where the blue dots are spaces):
The text was updated successfully, but these errors were encountered:
Correct. This seems pointless when you're using the default style that doesn't use background colors, but it makes a difference with different styles. Consider this example:
I think we can try and trim padding spaces when there's no background color being applied.
Btw, if you're using glow/glamour to pipe its output to a pager, I'd also recommend explicitly setting a style, otherwise it'll detect not printing to a terminal and switch to the notty style.
I've moved this issue to glow, as I don't consider it a bug in the context of glamour. Here the padding indeed is an intended feature.
However, I can understand why in the context of glow this might not be the desired effect, if the padding itself isn't styled - for example when background colors are being applied.
I've therefore fixed this in glow itself and we now trim un-styled spaces from the end of each line.
When using
glow
to render markdowns, it seems like there are a lot of useless spaces at the end of lines. You can see in this screenshot (run withglow github.com/charmbracelet/glow | bat -A
, where the blue dots are spaces):The text was updated successfully, but these errors were encountered: