Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTMLGenerator - fix new line in "since" not working #7396

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading