proc: fix man page display

This commit is contained in:
Alastair Poole 2020-05-14 15:30:03 +01:00
parent a6d1da406b
commit 3f6de6f8ac
1 changed files with 2 additions and 2 deletions

View File

@ -458,7 +458,7 @@ _info_tab_add(Evas_Object *parent, const char *cmd)
elm_entry_scrollable_set(entry, EINA_TRUE); elm_entry_scrollable_set(entry, EINA_TRUE);
evas_object_show(entry); evas_object_show(entry);
Eina_List *lines = _exe_response(eina_slstr_printf("man %s", cmd)); Eina_List *lines = _exe_response(eina_slstr_printf("man %s | col -b", cmd));
if (lines) if (lines)
{ {
Eina_Strbuf *buf = eina_strbuf_new(); Eina_Strbuf *buf = eina_strbuf_new();
@ -471,7 +471,7 @@ _info_tab_add(Evas_Object *parent, const char *cmd)
} }
eina_list_free(lines); eina_list_free(lines);
eina_strbuf_append(buf, "<code>"); eina_strbuf_append(buf, "</code>");
elm_object_text_set(entry, eina_strbuf_string_get(buf)); elm_object_text_set(entry, eina_strbuf_string_get(buf));
eina_strbuf_free(buf); eina_strbuf_free(buf);
} }