Skip to content

Commit 66f40c3

Browse files
author
yaroslav
committed
docs update
1 parent 0522215 commit 66f40c3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

omd2tex/objects/codeblock.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ def __init__(self, blocktype: str, blocklines: list) -> None:
2020
def _minted_python(blocklines: list) -> Paragraph:
2121
"""Render a Python code block using minted."""
2222

23-
joined_lines = "\n".join(blocklines)
2423
block = f"""\\usemintedstyle{{default}}
2524
\\begin{{minted}}[mathescape, linenos, numbersep=5pt, frame=lines, framesep=2mm, breaklines]{{python}}
26-
{joined_lines}
25+
{"\n".join(blocklines)}
2726
\\end{{minted}}"""
2827

2928
return Paragraph(block, parse=False)

0 commit comments

Comments
 (0)