fix e621 descriptions
authorNiki Roo <niki@nikiroo.be>
Sun, 17 May 2020 20:36:33 +0000 (22:36 +0200)
committerNiki Roo <niki@nikiroo.be>
Sun, 17 May 2020 20:36:33 +0000 (22:36 +0200)
src/be/nikiroo/fanfix/supported/E621.java

index adf8d28c8b2853a01fddc02b239346bec9f28a0e..a566017904cf75fc7c532bcb0539068797cbd002 100644 (file)
@@ -81,15 +81,20 @@ class E621 extends BasicSupport {
        protected String getDesc() throws IOException {
                if (isSearchOrSet(getSource())) {
                        StringBuilder builder = new StringBuilder();
+                       builder.append("<div>");
                        builder.append("A collection of images from ")
-                                       .append(getSource().getHost()).append("\n") //
-                                       .append("\tTime of creation: "
+                                       .append(getSource().getHost()) //
+                                       .append("<br/>\n") //
+                                       .append("&nbsp;&nbsp;&nbsp;&nbsp;Time of creation: "
                                                        + StringUtils.fromTime(new Date().getTime()))
-                                       .append("\n") //
-                                       .append("\tTags: ");//
+                                       .append("<br/>\n") //
+                                       .append("&nbsp;&nbsp;&nbsp;&nbsp;tTags: ");//
                        for (String tag : getTags()) {
-                               builder.append("\t\t").append(tag);
+                               builder.append(
+                                               "\n<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;")
+                                               .append(tag);
                        }
+                       builder.append("\n</div>");
 
                        return builder.toString();
                }
@@ -97,7 +102,7 @@ class E621 extends BasicSupport {
                if (isPool(getSource())) {
                        Element el = getSourceNode().getElementById("description");
                        if (el != null) {
-                               return el.text();
+                               return el.html();
                        }
                }