Line height for numbers does not match code row.
@Anteru is already working on this.
Since Oct 29, 2021.
Assessment
This issue has not been assessed yet.
Description
We are using Pygments 2.10.0 with the tango theme. Our target type is html.
This is our command line
pygmentize -l %s -O style=tango,linenos=table,noclasses -f html -o %s %s
so
pygmentize -l yaml -O style=tango,linenos=table,noclasses -f html -o /tmp/result.html /tmp/source.yaml
When doing so, the resulting HTML does show different line-heights for the line-numbering compared to the code column.
The code column shows up with line-height: 125%, while the numbering line-height is normal. This said, it is all applied to the pre container
This means that code and it's line number show up shifted in it's height.
We should thus consider setting the line-height on both of the pre id the numbering and code column to the same value (either to normal or to 125%)
- Dominant language
- Python
- Stars
- 2.2k
- Forks
- 885
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pygments/pygments
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
All issues in pygments/pygments
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100