Skip to content

Commit

Permalink
Fix documentation options with multiple newlines
Browse files Browse the repository at this point in the history
Note that this won't appear in the docs until the next time we generate docs.

Fixes: #111
  • Loading branch information
mike-solomon committed Apr 23, 2024
1 parent 1b83a91 commit 13b7e18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ class RecipeMarkdownGenerator : Runnable {
var description = if (option.description == null) {
""
} else {
option.description
option.description.replace("\n", "<br />")
}
description = if (option.isRequired) {
description
Expand Down

0 comments on commit 13b7e18

Please sign in to comment.