diff --git a/app/views/content_viewer/_comment.rhtml b/app/views/content_viewer/_comment.rhtml index de0d8f0..18b9f64 100644 --- a/app/views/content_viewer/_comment.rhtml +++ b/app/views/content_viewer/_comment.rhtml @@ -27,6 +27,16 @@ <%= '
' + _('(unauthenticated user)') if ! comment.author %>
- <%= comment.body %> +

+ <%= + comment.body. + gsub( /\n\s*\n/, '

' ). + gsub( /\n/, '
' ). + gsub( /(^|\s)(www\.[^\s])/, '\1http://\2' ). + gsub( /(https?:\/\/([^\s]+))/, + '\2' ) + %>

-- libgit2 0.21.2