From: Niki Roo Date: Tue, 29 Aug 2017 11:33:04 +0000 (+0200) Subject: Fix [more] links (point to gophermap, not text) X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=1647310f0abec346d291df8bbb3317da5cc65144;p=gofetch.git Fix [more] links (point to gophermap, not text) --- diff --git a/src/be/nikiroo/gofetch/Fetcher.java b/src/be/nikiroo/gofetch/Fetcher.java index 9dbf0e1..e53bfaf 100644 --- a/src/be/nikiroo/gofetch/Fetcher.java +++ b/src/be/nikiroo/gofetch/Fetcher.java @@ -93,8 +93,8 @@ public class Fetcher { } ref = "../" + ref + "/index.html"; - htmlBuilder.append(getLink(support.getDescription(), ref, true, - true)); + htmlBuilder.append(getLink(support.getDescription(), + ref, true, true)); } File gopherCache = new File(dir, preselector); @@ -197,10 +197,19 @@ public class Fetcher { boolean last = i == headers.length - 1; if (enoughStories || last) { if (!last) { - gopherLines.add(getLink("More", support.getSelector() - + "gophermap_" + (page + 1), false, false)); - htmlLines.add(getLink("More", "index_" + (page + 1) - + ".html", false, true)); + gopherLines.add(getLink("More", + support.getSelector() + + "gophermap_" + + (page + 1), + true, + false)); + + htmlLines.add(getLink("More", + "index_" + + (page + 1) + + ".html", + true, + true)); } write(gopherLines, varDir, "gophermap", "", page);