Skip to content

Commit

Permalink
Merge branch 'patch-1' of https://github.com/Kwpolska/pygments into K…
Browse files Browse the repository at this point in the history
…wpolska-patch-1
  • Loading branch information
Anteru committed Jan 3, 2022
2 parents 0983703 + 346564d commit b2b0bc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygments/formatters/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ def _wrap_lineanchors(self, inner):
for t, line in inner:
if t:
i += 1
href = "" if self.linenos else ' href="%s-%d"' % (s, i)
href = "" if self.linenos else ' href="#%s-%d"' % (s, i)
yield 1, '<a id="%s-%d" name="%s-%d"%s></a>' % (s, i, s, i, href) + line
else:
yield 0, line
Expand Down

0 comments on commit b2b0bc7

Please sign in to comment.