summaryrefslogtreecommitdiff
path: root/src/bin/eina
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-11-17 08:33:24 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-11-17 18:41:32 +0900
commitf7b2ec8bff898f797654311ff54a507e25b878ce (patch)
treec7def30501e000a7f8ef8981f920440cbb2aecbe /src/bin/eina
parent6a3a4a4124f3b63ab5d60a9faebf92cacb67a841 (diff)
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.
Diffstat (limited to 'src/bin/eina')
-rw-r--r--src/bin/eina/eina_btlog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/eina/eina_btlog.c b/src/bin/eina/eina_btlog.c
index f251159b3c..d273f8edf1 100644
--- a/src/bin/eina/eina_btlog.c
+++ b/src/bin/eina/eina_btlog.c
@@ -380,10 +380,10 @@ main(int argc, char **argv)
380 len = strlen(bt->bin_dir); 380 len = strlen(bt->bin_dir);
381 for (i = 0; i < (cols[0] - len); i++) printf(" "); 381 for (i = 0; i < (cols[0] - len); i++) printf(" ");
382 if (color) 382 if (color)
383 printf("\033[34m%s\033[01m\033[36m/\033[37m%s\033[0m", 383 printf(" \033[34m%s\033[01m\033[36m/\033[37m%s\033[0m",
384 bt->bin_dir, bt->bin_name); 384 bt->bin_dir, bt->bin_name);
385 else 385 else
386 printf("%s/%s", 386 printf(" %s/%s",
387 bt->bin_dir, bt->bin_name); 387 bt->bin_dir, bt->bin_name);
388 len = strlen(bt->bin_name); 388 len = strlen(bt->bin_name);
389 for (i = 0; i < (cols[1] - len); i++) printf(" "); 389 for (i = 0; i < (cols[1] - len); i++) printf(" ");