From ab07d4d58703383a89b4849cf2e62231b3f80b98 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Wed, 9 Aug 2017 09:45:19 +0200 Subject: [PATCH] Html output: add a
 and some align=justify

---
 src/be/nikiroo/gofetch/output/Html.java | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/src/be/nikiroo/gofetch/output/Html.java b/src/be/nikiroo/gofetch/output/Html.java
index 5b022d1..cdc77a4 100644
--- a/src/be/nikiroo/gofetch/output/Html.java
+++ b/src/be/nikiroo/gofetch/output/Html.java
@@ -17,14 +17,21 @@ public class Html extends Output {
 		}
 
 		String gopherUrl = "gopher://" + hostname + sel + ":" + port;
+		
+		StringBuilder builder = new StringBuilder();
+		appendPre(builder);
 
-		return "

News

\n"// + builder.append("

News

\n"// + "

You will find here a few pages full of news, mirroring " + gopherUrl + ".

\n"// + "

They are simply scrapped from their associated webpage and updated a few times a day.

\n"// - ; + ); + + appendPost(builder); + + return builder.toString(); } @Override @@ -76,6 +83,9 @@ public class Html extends Output { builder.append("\n"); builder.append(" \n"); builder.append(" \n"); + builder.append(" \n"); builder.append("\n"); builder.append("\n"); } @@ -123,7 +133,7 @@ public class Html extends Output { builder.append("
\n"); } - builder.append("
\n"); + builder.append("
\n"); if (resume) { builder.append(" " + story.getContent() + "\n"); } else { -- 2.27.0