From 1c72097c24cc940a7ffe98662e9cd832138efe46 Mon Sep 17 00:00:00 2001 From: rlawson Date: Wed, 27 Aug 2014 22:09:17 -0400 Subject: [PATCH] make source render in pre tag --- src/main/webapp/WEB-INF/pages/main_new.jsp | 2 +- src/main/webapp/js/goatUtil.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/WEB-INF/pages/main_new.jsp b/src/main/webapp/WEB-INF/pages/main_new.jsp index b55894652..bfde6742f 100644 --- a/src/main/webapp/WEB-INF/pages/main_new.jsp +++ b/src/main/webapp/WEB-INF/pages/main_new.jsp @@ -161,7 +161,7 @@

Lesson Source Code

-
+
diff --git a/src/main/webapp/js/goatUtil.js b/src/main/webapp/js/goatUtil.js index 638b0c149..fcf6443f7 100644 --- a/src/main/webapp/js/goatUtil.js +++ b/src/main/webapp/js/goatUtil.js @@ -35,7 +35,7 @@ goat.utils = { }, showLessonSource: function() { $.get("service/source.mvc", {}, function(reply) { - $("#lesson_source").html(reply); + $("#lesson_source").html("
"+reply+"
"); }, "html"); }, showLessonSolution: function() {