spaces to tabs

This commit is contained in:
Denis Knauf 2013-02-16 15:44:15 +01:00
parent a479b980e0
commit f14ed5960c
2 changed files with 9 additions and 9 deletions

View file

@ -285,8 +285,8 @@ class Truckle
end end
def markdown_format t, colored = nil def markdown_format t, colored = nil
t = t.gsub( /^\t+/) {|indent| ' '*indent.length}
if colored if colored
t = t.gsub( /^\t+/) {|indent| ' '*indent.length}
t.gsub! /^([^\n]+)\n===+/m, "\n«««««« \033[1;4;33m\\1\033[0m »»»»»»" t.gsub! /^([^\n]+)\n===+/m, "\n«««««« \033[1;4;33m\\1\033[0m »»»»»»"
t.gsub! /^([^\n]+)\n---+/m, "\n««« \033[1;33m\\1\033[0m »»»" t.gsub! /^([^\n]+)\n---+/m, "\n««« \033[1;33m\\1\033[0m »»»"
t.gsub! /^ (.*?)( *#.*)$/, " \033[1;44m\\1\033[0m\\2" t.gsub! /^ (.*?)( *#.*)$/, " \033[1;44m\\1\033[0m\\2"