Skip to content

Commit

Permalink
NakedHTMLFormatter Parent Wrap
Browse files Browse the repository at this point in the history
Signed-off-by: Darren Nathanael <github@darrennathanael.com>
  • Loading branch information
DarrenOfficial committed Dec 3, 2024
1 parent ef1b2ca commit 2960b1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dpaste/highlight.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 2960b1d

Please sign in to comment.