From 1647310f0abec346d291df8bbb3317da5cc65144 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Tue, 29 Aug 2017 13:33:04 +0200 Subject: [PATCH] Fix [more] links (point to gophermap, not text) --- src/be/nikiroo/gofetch/Fetcher.java | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) 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); -- 2.27.0