bugdown: Clarify variable name

(imported from commit 27968536bd6a3fcda6d26d8dde7f82d9f0990dd2)
This commit is contained in:
Zev Benjamin 2013-09-04 15:45:52 -04:00
parent b3644ecfad
commit dd26260884
1 changed files with 3 additions and 3 deletions

View File

@ -103,9 +103,9 @@ class FencedBlockPreprocessor(markdown.preprocessors.Preprocessor):
def process_fence(self, m, text):
lang = ''
langclass = ''
if m.group('lang'):
lang = LANG_TAG % m.group('lang')
langclass = LANG_TAG % m.group('lang')
# If config is not empty, then the codehighlite extension
# is enabled, so we call it to highlite the code
@ -120,7 +120,7 @@ class FencedBlockPreprocessor(markdown.preprocessors.Preprocessor):
code = highliter.hilite()
else:
code = CODE_WRAP % (lang, self._escape(m.group('code')))
code = CODE_WRAP % (langclass, self._escape(m.group('code')))
placeholder = self.markdown.htmlStash.store(code, safe=True)
return '%s\n%s\n%s'% (text[:m.start()], placeholder, text[m.end():])