summaryrefslogtreecommitdiff
path: root/pygments
diff options
context:
space:
mode:
authorMatthäus G. Chajdas <dev@anteru.net>2022-01-03 20:03:02 +0100
committerMatthäus G. Chajdas <dev@anteru.net>2022-01-03 20:03:02 +0100
commitb2b0bc7df75c4567abf59f427daea7bc13be6933 (patch)
treecfc3e0a13ac856b4abd204c64c44570d36518420 /pygments
parent09837037639309c85f6e05f69813606673b8af60 (diff)
parent346564d693117b8ebc9606511bc83627971c7ac2 (diff)
downloadpygments-git-b2b0bc7df75c4567abf59f427daea7bc13be6933.tar.gz
Merge branch 'patch-1' of https://github.com/Kwpolska/pygments into Kwpolska-patch-1
Diffstat (limited to 'pygments')
-rw-r--r--pygments/formatters/html.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/formatters/html.py b/pygments/formatters/html.py
index ba2df3fa..f3a77a2d 100644
--- a/pygments/formatters/html.py
+++ b/pygments/formatters/html.py
@@ -772,7 +772,7 @@ class HtmlFormatter(Formatter):
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