commit dd851a166a6f62d8ebadbc801c68fbfe40d5d2dd
parent ba51292f9c03e313596ecf4d4eac8a9eedfc92f9
Author: hhvn <dev@hhvn.uk>
Date: Thu, 13 May 2021 21:16:27 +0100
sfeed_curses.c: display author
Diffstat:
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/sfeed_curses.c b/sfeed_curses.c
@@ -1576,13 +1576,16 @@ item_row_format(struct pane *p, struct row *row)
item = (struct item *)row->data;
if (item->timeok && localtime_r(&(item->timestamp), &tm)) {
- snprintf(text, sizeof(text), "%c %04d-%02d-%02d %02d:%02d %s",
+ snprintf(text, sizeof(text), "%c %-20s %04d-%02d-%02d %02d:%02d %s",
item->fields[FieldEnclosure][0] ? '@' : ' ',
+ item->fields[FieldAuthor],
tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
- tm.tm_hour, tm.tm_min, item->fields[FieldTitle]);
+ tm.tm_hour, tm.tm_min,
+ item->fields[FieldTitle]);
} else {
- snprintf(text, sizeof(text), "%c %s",
+ snprintf(text, sizeof(text), "%c %-20s %s",
item->fields[FieldEnclosure][0] ? '@' : ' ',
+ item->fields[FieldAuthor],
item->fields[FieldTitle]);
}