diff options
Diffstat (limited to 'app/lib/formatter.rb')
-rw-r--r-- | app/lib/formatter.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb index bbe123b54..3456f30f8 100644 --- a/app/lib/formatter.rb +++ b/app/lib/formatter.rb @@ -249,7 +249,8 @@ class Formatter end def format_console(html) - "<pre><code>#{html}</code></pre>" + cursor = '<span class="cursor"></span>' + "<pre><code>#{html.strip.sub(/<\/p>\Z/, cursor)}</p></code></pre>" end def format_markdown(html) |