Mercurial > dandelion
changeset 493:e9d4108e0c3a
pass the syntax name in highlighting
| author | sheep@ghostwheel |
|---|---|
| date | Sat, 11 Oct 2008 11:50:54 +0200 |
| parents | 4ce21c14bc39 |
| children | ddaeb6543f62 |
| files | dandelion/wikiparser.py |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dandelion/wikiparser.py Sat Oct 11 11:49:36 2008 +0200 +++ b/dandelion/wikiparser.py Sat Oct 11 11:50:54 2008 +0200 @@ -281,7 +281,7 @@ lines.append(line) line = unicode(self.lines.next(), "utf-8", "replace") inside = u"\n".join(line.rstrip() for line in lines) - for part in self.wiki_macro("syntax", inside): + for part in self.wiki_macro("syntax", inside, syntax=syntax): yield part # yield html_start('pre', class_='syntax %s' % syntax) # yield html_text(inside)
