Skip to content

Commit

Permalink
Update src/main/java/io/seqera/tower/cli/utils/FormatHelper.java
Browse files Browse the repository at this point in the history
Co-authored-by: Endre Sükösd <[email protected]>
  • Loading branch information
georgi-seqera and endre-seqera authored Feb 5, 2025
1 parent 0a45dfa commit bc242cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/seqera/tower/cli/utils/FormatHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ public static String formatDescription(String description, int maxLength) {
}

// remove line breaks
var text = description.replace("\n", " ").replace("\r", " ");
var text = description.trim().replace("\n", " ").replace("\r", " ");
// cap the description length if too long
return text.length() > maxLength ? text.substring(0, maxLength) + "..." : text;
}
Expand Down

0 comments on commit bc242cd

Please sign in to comment.