[geany/www.geany.org] 1dc453: Document why NakedHtmlFormatter exists
Enrico Tröger
git-noreply at xxxxx
Sun Jun 23 15:15:23 UTC 2019
Branch: refs/heads/master
Author: Enrico Tröger <enrico.troeger at uvena.de>
Committer: Enrico Tröger <enrico.troeger at uvena.de>
Date: Sun, 23 Jun 2019 15:15:23 UTC
Commit: 1dc453bfcf46c6dbe8058c6a3a889070063580ba
https://github.com/geany/www.geany.org/commit/1dc453bfcf46c6dbe8058c6a3a889070063580ba
Log Message:
-----------
Document why NakedHtmlFormatter exists
Also rename an argument name to fix a PyLint warning about
different argument names.
Modified Paths:
--------------
pastebin/highlight.py
Modified: pastebin/highlight.py
5 lines changed, 3 insertions(+), 2 deletions(-)
===================================================================
@@ -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
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list