...
authorNiki Roo <niki@nikiroo.be>
Tue, 8 Aug 2017 17:41:23 +0000 (19:41 +0200)
committerNiki Roo <niki@nikiroo.be>
Tue, 8 Aug 2017 17:41:23 +0000 (19:41 +0200)
src/be/nikiroo/gofetch/Fetcher.java

index b24d3d11ecadbefee0cc697b5ac29ccbf7b8fd72..7490037c201929aba38297d809e7f9c917af1e95 100644 (file)
@@ -229,8 +229,8 @@ public class Fetcher {
 
        private String getLink(String name, String ref, boolean index, boolean html) {
                if (!html) {
-                       return new StringBuilder().append((index ? "1" : "0") + name)
-                                       .append("\t").append("1" + ref) //
+                       return new StringBuilder().append("1" + name).append("\t")
+                                       .append((index ? "1" : "0") + ref) //
                                        .append("\t").append(hostname) //
                                        .append("\t").append(Integer.toString(port)) //
                                        .append("\r\n").toString();