spaces to tabs

master
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
def markdown_format t, colored = nil
t = t.gsub( /^\t+/) {|indent| ' '*indent.length}
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;33m\\1\033[0m »»»"
t.gsub! /^ (.*?)( *#.*)$/, " \033[1;44m\\1\033[0m\\2"