Skip to content

Commit

Permalink
fix double position sticky
Browse files Browse the repository at this point in the history
  • Loading branch information
DArtagnant committed Jun 5, 2024
1 parent 08302c0 commit 53f3f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion highlight.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def format_code(code):
return parseFromToken(tokens, formatter)

def create_lines(nbr):
html = '<td style="padding:0; vertical-align:top; text-align:right; position: sticky; background-color:#bfbfbf; position: sticky; left: 0;"><div><pre>'
html = '<td style="padding:0; vertical-align:top; text-align:right; background-color:#bfbfbf; position: sticky; left: 0;"><div><pre>'
for n in range(1, nbr + 1):
html += f'<span style="padding-right: 5px;">{n}</span>'
if n != nbr:
Expand Down

0 comments on commit 53f3f9a

Please sign in to comment.