From: Niki Roo Date: Mon, 4 May 2020 21:42:58 +0000 (+0200) Subject: improve text viewer output X-Git-Tag: fanfix-swing-1.2.0~10 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=b590be0226f51dffcec2a729489479f1ee13fa0f;p=fanfix-swing.git improve text viewer output --- diff --git a/src/be/nikiroo/fanfix_swing/gui/viewer/ViewerTextOutput.java b/src/be/nikiroo/fanfix_swing/gui/viewer/ViewerTextOutput.java index 07028809..82f0a97b 100644 --- a/src/be/nikiroo/fanfix_swing/gui/viewer/ViewerTextOutput.java +++ b/src/be/nikiroo/fanfix_swing/gui/viewer/ViewerTextOutput.java @@ -34,7 +34,7 @@ class ViewerTextOutput { @Override protected void writeChapterHeader(Chapter chap) throws IOException { - builder.append(""); + builder.append(""); if (chapterName) { builder.append("

"); @@ -82,12 +82,14 @@ class ViewerTextOutput { builder.append("
"); break; case BLANK: - builder.append("

"); + builder.append("
"); break; case BREAK: - builder.append("

"); - builder.append("* * *"); - builder.append("



"); + // Used to be 7777DD + builder.append("

"); + builder.append("* * *"); + builder.append("

"); + builder.append("
"); break; case QUOTE: builder.append("
"); @@ -103,7 +105,8 @@ class ViewerTextOutput { @Override protected String enbold(String word) { - return "" + word + ""; + // Used to be COLOR='#7777DD' + return "" + word + ""; } @Override