mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-12-23 15:13:06 +11:00
NakedHTMLFormatter Parent Wrap
Signed-off-by: Darren Nathanael <github@darrennathanael.com>
This commit is contained in:
parent
ef1b2caeda
commit
2960b1d68a
1 changed files with 3 additions and 1 deletions
|
@ -112,9 +112,11 @@ class NakedHtmlFormatter(HtmlFormatter):
|
|||
"""Pygments HTML formatter with no further HTML tags."""
|
||||
|
||||
def wrap(self, source, outfile):
|
||||
return self._wrap_code(source)
|
||||
# Call parent's wrap method with both parameters
|
||||
return super().wrap(self._wrap_code(source), outfile)
|
||||
|
||||
def _wrap_code(self, source):
|
||||
"""Process and yield the source code chunks."""
|
||||
yield from source
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue