You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Limit changelog size by entry count instead of total size (#4167)
Previous attempt capped the changelog length by markdown, but the limit may be exceeded when rendered as HTML
The HTML renderer doesn't make it easy to stop rendering once we hit a certain size, so limit by entry count instead
// if there are too many entries, we fail validation:
21
20
// Invalid plugin descriptor 'plugin.xml'. The value of the '<change-notes>' parameter is too long. Its length is 65573 which is more than maximum 65535 characters long.
22
-
if ((sb.length + entry.length) >65000) {
23
-
isMaxLength =true
21
+
// HtmlRenderer is not that flexible, so do the simple thing instead of trying to backtrack and maximize the size of the bundled changelog
0 commit comments