Skip to content

Commit

Permalink
HTMLGenerator - add back empty since thingy
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneBeee committed Jan 3, 2025
1 parent 4ebd1bb commit da0a703
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/ch/njol/skript/doc/HTMLGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -488,10 +488,14 @@ private String generateAnnotated(String descTemp, SyntaxElementInfo<?> info, @Nu
desc = handleIf(desc, "${if by-addon}", false);

// New Elements
if (since != null)
if (since != null) {
for (String s : since.value()) {
desc = handleIf(desc, "${if new-element}", NEW_TAG_PATTERN.matcher(s).find());
}
} else {
desc = handleIf(desc, "${if new-element}", NEW_TAG_PATTERN.matcher("").find());
}



// Structure - EntryData
Expand Down

0 comments on commit da0a703

Please sign in to comment.