From: Niki Roo Date: Wed, 13 Mar 2019 08:04:38 +0000 (+0100) Subject: tui: story reader: fix metadata list X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=f435c113751b9c91633873a74d35adf4e184e8c0;p=fanfix-jexer.git tui: story reader: fix metadata list --- diff --git a/src/be/nikiroo/fanfix/reader/tui/TuiReaderStoryWindow.java b/src/be/nikiroo/fanfix/reader/tui/TuiReaderStoryWindow.java index 04d38c5..79840b9 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();