Fix [more] links (point to gophermap, not text)
authorNiki Roo <niki@nikiroo.be>
Tue, 29 Aug 2017 11:33:04 +0000 (13:33 +0200)
committerNiki Roo <niki@nikiroo.be>
Tue, 29 Aug 2017 11:33:04 +0000 (13:33 +0200)
src/be/nikiroo/gofetch/Fetcher.java

index 9dbf0e10bf60d52daad2081f9c615d27dc19973d..e53bfaf3c41d72bd566dd47ef9ec9fdd40b9d015 100644 (file)
@@ -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);