Skip to content

Commit 1c72097

Browse files
rlawsonrlawson
authored andcommitted
make source render in pre tag
1 parent 5cf9b47 commit 1c72097

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/webapp/WEB-INF/pages/main_new.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
<div class="col-md-12">
162162
<h4>Lesson Source Code</h4>
163163
<div class="panel" >
164-
<div class="panel-body" id="lesson_source">
164+
<div class="panel-body" id="lesson_source">
165165
</div>
166166
</div>
167167
</div>

src/main/webapp/js/goatUtil.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ goat.utils = {
3535
},
3636
showLessonSource: function() {
3737
$.get("service/source.mvc", {}, function(reply) {
38-
$("#lesson_source").html(reply);
38+
$("#lesson_source").html("<pre>"+reply+"</pre>");
3939
}, "html");
4040
},
4141
showLessonSolution: function() {

0 commit comments

Comments
 (0)