raster pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=f7b2ec8bff898f797654311ff54a507e25b878ce
commit f7b2ec8bff898f797654311ff54a507e25b878ce Author: Carsten Haitzler (Rasterman) <[email protected]> Date: Thu Nov 17 08:33:24 2016 +0900 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. --- src/bin/eina/eina_btlog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/eina/eina_btlog.c b/src/bin/eina/eina_btlog.c index f251159..d273f8e 100644 --- a/src/bin/eina/eina_btlog.c +++ b/src/bin/eina/eina_btlog.c @@ -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(" "); --
