Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Sun, 23 Jun 2019 15:15:23 UTC Commit: 1dc453bfcf46c6dbe8058c6a3a889070063580ba https://github.com/geany/www.geany.org/commit/1dc453bfcf46c6dbe8058c6a3a8890...
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).