forked from enlightenment/efl
eina_btlog - add spaces at start so when cnp'd into a wiki it formats
without spaces at the start of every line this ends up trying to deal with this poorly, ensure at least 4 spaces at the start of every line and wikis tend to format with fixed width monospace layout as a "code sample blob" which is much more correct. at least this is a simple always-on feature we can have so copy & paste turns out nicely in bug reports. we could have multilpe formatting options like maybe -phab which might output this as a wiki markdown "table". maybe -html so it prodices raw html? either way... this is a basic improvement out of the box.
This commit is contained in:
parent
6a3a4a4124
commit
f7b2ec8bff
|
@ -380,10 +380,10 @@ main(int argc, char **argv)
|
|||
len = strlen(bt->bin_dir);
|
||||
for (i = 0; i < (cols[0] - len); i++) printf(" ");
|
||||
if (color)
|
||||
printf("\033[34m%s\033[01m\033[36m/\033[37m%s\033[0m",
|
||||
printf(" \033[34m%s\033[01m\033[36m/\033[37m%s\033[0m",
|
||||
bt->bin_dir, bt->bin_name);
|
||||
else
|
||||
printf("%s/%s",
|
||||
printf(" %s/%s",
|
||||
bt->bin_dir, bt->bin_name);
|
||||
len = strlen(bt->bin_name);
|
||||
for (i = 0; i < (cols[1] - len); i++) printf(" ");
|
||||
|
|
Loading…
Reference in New Issue