From a6cdb441f65b77ab1b37e07b22ab378e6f11410a Mon Sep 17 00:00:00 2001 From: "Ahmad K. Bawaneh" Date: Sun, 22 Oct 2023 12:19:34 +0300 Subject: [PATCH] Missing space before tsdoc tags Fix #85 --- .../com/vertispan/tsdefs/doclet/TsDocTreeVisitor.java | 2 +- .../tsdocs/doclet/links/methods/JsTypeLinksMethods.java | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) 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..e27021f 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..5585ade 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,14 @@ */ @JsType public class JsTypeLinksMethods { - public void doSomethingA() {} + + /** + * + * @return string sample + */ + public String doSomethingA() { + return ""; + } public void doSomethingA2() {} }