@@ -225,7 +225,7 @@ private void generatePackageIndex(String packageName, List<TypeElement> classes,
225225 }
226226 }
227227 }
228- json .put ("description" , convertToMarkdown (description , packageName ));
228+ json .put ("description" , convertToMarkdown (description , packageName ). trim () );
229229 if (indexInDocs != null ) {
230230 json .put ("index" , indexInDocs );
231231 }
@@ -320,7 +320,7 @@ private void generateClassIndex(TypeElement classElement, List<ExecutableElement
320320 }
321321
322322 json .put ("scratchblock" , customTags .getOrDefault ("scratchblock" , "" ));
323- json .put ("description" , convertToMarkdown (description , currentPackage ));
323+ json .put ("description" , convertToMarkdown (description , currentPackage ). trim () );
324324 if (indexInDocs != null ) {
325325 json .put ("index" , indexInDocs );
326326 }
@@ -412,7 +412,7 @@ private void generateMethodJson(List<ExecutableElement> methods, String classNam
412412 }
413413 json .put ("scratchblock" , customTags .getOrDefault ("scratchblock" , "" ));
414414 json .put ("class" , className );
415- json .put ("description" , finalDescription );
415+ json .put ("description" , finalDescription . trim () );
416416 if (indexInDocs != null ) {
417417 json .put ("index" , indexInDocs );
418418 }
0 commit comments