diff options
| author | Matthäus G. Chajdas <dev@anteru.net> | 2022-01-03 20:03:02 +0100 |
|---|---|---|
| committer | Matthäus G. Chajdas <dev@anteru.net> | 2022-01-03 20:03:02 +0100 |
| commit | b2b0bc7df75c4567abf59f427daea7bc13be6933 (patch) | |
| tree | cfc3e0a13ac856b4abd204c64c44570d36518420 /pygments | |
| parent | 09837037639309c85f6e05f69813606673b8af60 (diff) | |
| parent | 346564d693117b8ebc9606511bc83627971c7ac2 (diff) | |
| download | pygments-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.py | 2 |
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 |
