From 2960b1d68adecda6a41f67af1238ae5ad77657f6 Mon Sep 17 00:00:00 2001 From: Darren Nathanael Date: Wed, 4 Dec 2024 03:11:26 +0700 Subject: [PATCH] NakedHTMLFormatter Parent Wrap Signed-off-by: Darren Nathanael --- dpaste/highlight.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dpaste/highlight.py b/dpaste/highlight.py index d171f35..91e77e0 100644 --- a/dpaste/highlight.py +++ b/dpaste/highlight.py @@ -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