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

@ -55,8 +55,8 @@ Resumable
You do not need to set a resume-file. truckle will determine it automaticaly. First, you can give a first argument for tagging. Tag must be numerical! You do not need to set a resume-file. truckle will determine it automaticaly. First, you can give a first argument for tagging. Tag must be numerical!
truckle 321 resolve netcat6 truckle 321 resolve netcat6
truckle 321 do truckle 321 do
If you do not give a tag, truckle will use the actual terminal-device-number. If it isn't possible to determine terminal, the parent-pid will be used. If you do not give a tag, truckle will use the actual terminal-device-number. If it isn't possible to determine terminal, the parent-pid will be used.
@ -65,15 +65,15 @@ Like cave but different
Some commands will be displayed by a pager, so you can scroll up and down like Some commands will be displayed by a pager, so you can scroll up and down like
truckle resolve WHAT # cave -cy resolve WHAT | less -R truckle resolve WHAT # cave -cy resolve WHAT | less -R
truckle remove WHAT # cave -cy uninstall WHAT | less -R truckle remove WHAT # cave -cy uninstall WHAT | less -R
Some commands are not displayed by a pager, but will execute: Some commands are not displayed by a pager, but will execute:
truckle install WHAT # cave -cy resolve -x WHAT truckle install WHAT # cave -cy resolve -x WHAT
truckle uninstall WHAT # cave -cy uninstall -x WHAT truckle uninstall WHAT # cave -cy uninstall -x WHAT
«do» and «resume» are special, to execute the last command: «do» and «resume» are special, to execute the last command:
truckle resume # | do # cave resume truckle resume # | do # cave resume
trdo # | tresume # shortcuts trdo # | tresume # shortcuts

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"