Skip to content

Commit

Permalink
Document why NakedHtmlFormatter exists
Browse files Browse the repository at this point in the history
Also rename an argument name to fix a PyLint warning about
different argument names.
  • Loading branch information
eht16 committed Jun 23, 2019
1 parent e8ec8ad commit 1dc453b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pastebin/highlight.py
Expand Up @@ -50,14 +50,15 @@


class NakedHtmlFormatter(HtmlFormatter):
"""Do not wrap the code in <div> or <code> tags (Pygments default)"""

# ----------------------------------------------------------------------
def wrap(self, source, outfile):
return self._wrap_code(source)

# ----------------------------------------------------------------------
def _wrap_code(self, source):
for code, text in source:
def _wrap_code(self, inner):
for code, text in inner:
yield code, text


Expand Down

0 comments on commit 1dc453b

Please sign in to comment.