summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJensDiemer <git@jensdiemer.de>2014-05-15 13:49:48 +0200
committerJensDiemer <git@jensdiemer.de>2014-05-15 13:49:48 +0200
commit0d3ad8e3f0478f3beeddae1cee9c04ed140abc23 (patch)
tree455c3edf41c0f02b5837f4131f1f0be7499ecefa
parent3c1b88caa526ed59724b3ffbebcd3f98d091461b (diff)
downloadcreole-0d3ad8e3f0478f3beeddae1cee9c04ed140abc23.tar.gz
bugfix for python2.6
-rw-r--r--creole/shared/example_macros.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/creole/shared/example_macros.py b/creole/shared/example_macros.py
index c7faf2b..f72783c 100644
--- a/creole/shared/example_macros.py
+++ b/creole/shared/example_macros.py
@@ -21,6 +21,7 @@ except ImportError:
from creole.shared.utils import get_pygments_lexer, get_pygments_formatter
+
def html(text):
"""
Macro tag <<html>>...<</html>>
@@ -34,8 +35,7 @@ def pre(text):
Macro tag <<pre>>...<</pre>>.
Put text between html pre tag.
"""
- pre_text = '<pre>{}</pre>'
- return pre_text.format(text)
+ return '<pre>%s</pre>' % text
def code(ext, text):