From f435c113751b9c91633873a74d35adf4e184e8c0 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Wed, 13 Mar 2019 09:04:38 +0100 Subject: [PATCH] tui: story reader: fix metadata list --- .../fanfix/reader/tui/TuiReaderStoryWindow.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/be/nikiroo/fanfix/reader/tui/TuiReaderStoryWindow.java b/src/be/nikiroo/fanfix/reader/tui/TuiReaderStoryWindow.java index 04d38c50..79840b9d 100644 --- a/src/be/nikiroo/fanfix/reader/tui/TuiReaderStoryWindow.java +++ b/src/be/nikiroo/fanfix/reader/tui/TuiReaderStoryWindow.java @@ -172,11 +172,24 @@ class TuiReaderStoryWindow extends TWindow { setCurrentTitle(meta.getTitle()); + StringBuilder tags = new StringBuilder(); + for (String tag : meta.getTags()) { + if (tags.length() > 0) { + tags.append(", "); + } + tags.append(tag); + } + table.setRowData(new String[][] { // new String[] { " Author", meta.getAuthor() }, // new String[] { " Publication date", formatDate(meta.getDate()) }, + new String[] { " Published on", meta.getPublisher() }, + new String[] { " URL", meta.getUrl() }, new String[] { " Word count", format(meta.getWords()) }, - new String[] { " Source", meta.getSource() } // + new String[] { " Source", meta.getSource() }, + new String[] { " Subject", meta.getSubject() }, + new String[] { " Language", meta.getLang() }, + new String[] { " Tags", tags.toString() } // }); table.setHeaders(Arrays.asList("key", "value"), false); table.toTop(); -- 2.27.0