spaces to tabs
This commit is contained in:
parent
a479b980e0
commit
f14ed5960c
2
truckle
2
truckle
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue