summaryrefslogtreecommitdiffstats
path: root/theme
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-04-05 17:28:46 -0700
committerSamy Pessé <samypesse@gmail.com>2014-04-05 17:28:46 -0700
commit8b0f2f632950ee2441504ccad753ff673fccf0d6 (patch)
treef0cf424ec3e995d0766fee93deeb57af18321a09 /theme
parent44717a3e3ed6ddec880af37049239cd0c10d2955 (diff)
downloadgitbook-8b0f2f632950ee2441504ccad753ff673fccf0d6.zip
gitbook-8b0f2f632950ee2441504ccad753ff673fccf0d6.tar.gz
gitbook-8b0f2f632950ee2441504ccad753ff673fccf0d6.tar.bz2
Fix rendering of code in exercises
Diffstat (limited to 'theme')
-rw-r--r--theme/templates/page.html6
1 files changed, 1 insertions, 5 deletions
diff --git a/theme/templates/page.html b/theme/templates/page.html
index a65acaf..731e4bc 100644
--- a/theme/templates/page.html
+++ b/theme/templates/page.html
@@ -57,11 +57,7 @@
<div class="exercise">
<div class="exercise-header">Exercise #{{ exercise }}</div>
{% autoescape false %}{{ section.content }}{% endautoescape %}
- <pre>
- <code>
- {% autoescape false %}{{ section.code.base|code }}{% endautoescape %}
- </code>
- </pre>
+ <pre><code>{% autoescape false %}{{ section.code.base|code }}{% endautoescape %}</code></pre>
{% set exercise = exercise + 1 %}
</div>
{% endif %}