summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/includes/book/exercise.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/includes/book/exercise.html b/templates/includes/book/exercise.html
index 8b1fd1f..5d721f9 100644
--- a/templates/includes/book/exercise.html
+++ b/templates/includes/book/exercise.html
@@ -12,7 +12,7 @@
<div class="message">
{% autoescape false %}{{ section.content }}{% endautoescape %}
</div>
-<div class="editor" style="height: {{ section.content.split("\n").length*20 }};">{{ section.code.base }}</div>
+<div class="editor" style="height: {{ section.code.solution|lines*20 }}px">{{ section.code.base }}</div>
<pre class="hidden code-solution">{{ section.code.solution }}</pre>
<pre class="hidden code-validation">{{ section.code.validation }}</pre>