Skip to content

Commit

Permalink
HTMLGenerator: Fix new line in "since" not working (#7396)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneBeee authored Jan 6, 2025
1 parent edcfde6 commit 24c2652
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/main/java/ch/njol/skript/doc/HTMLGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -384,15 +384,7 @@ private static String minifyHtml(String page) {

i += Character.charCount(c);
}
return replaceBr(sb.toString());
}

/**
* Replaces specifically `<br/>` with `\n` - This is useful in code blocks where you can't use newlines due to the
* minifyHtml method (execute after minifyHtml)
*/
private static String replaceBr(String page) {
return page.replaceAll("<br/>", "\n");
return sb.toString();
}

private static String handleIf(String desc, String start, boolean value) {
Expand Down

0 comments on commit 24c2652

Please sign in to comment.