Skip to content

Commit

Permalink
Fix docs tooltip rendering when desc contains paragraphs
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvavrik committed Nov 20, 2023
1 parent 668874e commit 151ad84
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,8 @@ private List<String> extractEnumValues(TypeMirror realTypeMirror, boolean useHyp
if (rawJavaDoc != null && !rawJavaDoc.isBlank()) {
// Show enum constant description as a Tooltip
String javaDoc = enumJavaDocParser.parseConfigDescription(rawJavaDoc);
acceptedValues.add(String.format(Constants.TOOLTIP, enumValue, javaDoc));
acceptedValues.add(String.format(Constants.TOOLTIP, enumValue,
javaDoc.replace("<p>", Constants.EMPTY).replace("</p>", Constants.EMPTY)));
} else {
acceptedValues.add(Constants.CODE_DELIMITER
+ enumValue + Constants.CODE_DELIMITER);
Expand Down

0 comments on commit 151ad84

Please sign in to comment.