diff --git a/jsinterop-ts-defs-doclet/src/main/java/com/vertispan/tsdefs/doclet/TsDocTreeVisitor.java b/jsinterop-ts-defs-doclet/src/main/java/com/vertispan/tsdefs/doclet/TsDocTreeVisitor.java index 30ef5d7..de8c21b 100644 --- a/jsinterop-ts-defs-doclet/src/main/java/com/vertispan/tsdefs/doclet/TsDocTreeVisitor.java +++ b/jsinterop-ts-defs-doclet/src/main/java/com/vertispan/tsdefs/doclet/TsDocTreeVisitor.java @@ -125,7 +125,7 @@ public String visitDocComment(DocCommentTree node, Element element) { .collect(Collectors.joining()); String tags = node.getBlockTags().stream() - .map(tag -> tag.accept(this, element)) + .map(tag -> " " + tag.accept(this, element)) .collect(Collectors.joining("\n")); return body + "\n" + tags; } diff --git a/jsinterop-ts-defs-doclet/src/test/java/com/vertispan/tsdefs/tests/tsdocs/doclet/links/methods/JsTypeLinksMethods.java b/jsinterop-ts-defs-doclet/src/test/java/com/vertispan/tsdefs/tests/tsdocs/doclet/links/methods/JsTypeLinksMethods.java index ad3bded..558bf50 100644 --- a/jsinterop-ts-defs-doclet/src/test/java/com/vertispan/tsdefs/tests/tsdocs/doclet/links/methods/JsTypeLinksMethods.java +++ b/jsinterop-ts-defs-doclet/src/test/java/com/vertispan/tsdefs/tests/tsdocs/doclet/links/methods/JsTypeLinksMethods.java @@ -57,7 +57,11 @@ */ @JsType public class JsTypeLinksMethods { - public void doSomethingA() {} + + /** @return string sample */ + public String doSomethingA() { + return ""; + } public void doSomethingA2() {} }