X-Git-Url: https://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Fgofetch%2Foutput%2FGopher.java;h=f0c6f6dad69d90d2dd09d20baad1b4fec82fca67;hb=86d03b2e4fe0a2b53b83e981388394f3c5965f27;hp=51da87fb338f5ea4cd8fdc475a210035bf63f8a9;hpb=708b264ab6f9e235843225862227c767f9264433;p=gofetch.git diff --git a/src/be/nikiroo/gofetch/output/Gopher.java b/src/be/nikiroo/gofetch/output/Gopher.java index 51da87f..f0c6f6d 100644 --- a/src/be/nikiroo/gofetch/output/Gopher.java +++ b/src/be/nikiroo/gofetch/output/Gopher.java @@ -68,10 +68,13 @@ public class Gopher extends Output { } appendLeft(builder, menu, comment.getTitle(), "** ", " ", space); - appendLeft(builder, menu, "(" + comment.getAuthor() + ")", " ", - " ", space); - builder.append((menu ? "i" : "") + "\r\n"); + if (comment.getAuthor() != null + && !comment.getAuthor().trim().isEmpty()) { + appendLeft(builder, menu, "(" + comment.getAuthor() + ")", " ", + " ", space); + builder.append((menu ? "i" : "") + "\r\n"); + } for (String line : comment.getContentLines()) { int depth = 0;