-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code-blocks with line nos - lines and line numbers don't line up. #419
Comments
It seems to be that the line nos are rendered with a line height of 1.5 - and generated html seems to also state the same line height value for the code, but there seems to be a clash between the line heights set in the theme : These two CSS rules get appled to the code block
and :
but the line-height: normal; takes precedence; changing the line-height value in the first rule results in correctly aligining line nos and code. |
ref: readthedocs/sphinx_rtd_theme#419 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Signed-off-by: Markus Heiser <markus.heiser@darmarIT.de>
This is a duplicate of #417 |
Using the rtd Theme with this source :
The resultant rendered page has this :
The text was updated successfully, but these errors were encountered: