formatReleaseNoteForDisplay function

String formatReleaseNoteForDisplay(
  1. String note,
  2. int maxWidth
)

Format a release note for display.

Implementation

String formatReleaseNoteForDisplay(String note, int maxWidth) {
  if (note.length <= maxWidth) return note;
  return '${note.substring(0, maxWidth - 1)}\u2026';
}