line-height from custom pygments theme being ignored #438
-
In our custom pygments theme for SymPy, we set the However, this is being ignored by the docs We need this so that Unicode pretty printed output doesn't add extra space between lines. See for example https://docs.sympy.org/dev/tutorial/printing.html#unicode-pretty-printer and compare to our previous theme which set this attribute correctly https://docs.sympy.org/latest/tutorial/printing.html#unicode-pretty-printer I can work around this by adding it to the custom.css, but it seems preferable to include it in the pygments theme since pygments allows this. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Beta Was this translation helpful? Give feedback.
-
I can understand the tighter code is undesirable in most cases. We need it just so that our pretty printing looks good. Maybe we should consider whether that too negatively affects everything else. I actually forgot about font variability here. Our docs look best with DejaVu Sans Mono, because that's the best font for Unicode pretty printing, but it only uses that if you have it installed. If you don't have DejaVu Sans Mono installed, here's screenshots showing why we need this. Personally I don't think the tightness is too bad for everything else, but I guess that's a personal judgement call. Would be nice if we could get the best of both worlds somehow, but I don't know if that's possible. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure either TBH. This line still exists in Furo for now. I've filed #720 for further discussion on this, and for tracking a fix for this. |
Beta Was this translation helpful? Give feedback.
I'm not sure either TBH.
furo/src/furo/assets/styles/content/_code.sass
Line 40 in 5abeb9f
This line still exists in Furo for now. I've filed #720 for further discussion on this, and for tracking a fix for this.