• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

allura


Commit MetaInfo

修訂7e749ff9d21fb2725a2c34d76ea4ca1fe603b5db (tree)
時間2010-10-29 06:47:34
作者Jenny Steele <jsteele@geek...>
CommiterJenny Steele

Log Message

[#1096] Syntax highlighted code is no longer escaped by jinja

Change Summary

差異

--- a/Allura/allura/lib/app_globals.py
+++ b/Allura/allura/lib/app_globals.py
@@ -134,7 +134,7 @@ class Globals(object):
134134 return u'<pre>' + text + u'</pre>'
135135 else:
136136 lexer = pygments.lexers.get_lexer_by_name(lexer, encoding='chardet')
137- return pygments.highlight(text, lexer, self.pygments_formatter)
137+ return h.html.literal(pygments.highlight(text, lexer, self.pygments_formatter))
138138
139139 def forge_markdown(self, **kwargs):
140140 return markdown.Markdown(