X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Fgofetch%2Foutput%2FHtml.java;h=cdc77a461056887ef1cafad7e6abf7d19019d1ab;hb=ab07d4d58703383a89b4849cf2e62231b3f80b98;hp=5b022d1f8789224a1ea11514bc55ac42da01b47f;hpb=301dfeb23bda89e70b3c51ac2e26b378e7448cab;p=gofetch.git 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 {