Skip to content

Commit

Permalink
fix: double space in wrapped sequence diagram messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Yash-Singh1 committed Jul 17, 2024
1 parent b1b480a commit 99644ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mermaid/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ export const wrapLabel: (label: string, maxWidth: number, config: WrapLabelConfi
if (common.lineBreakRegex.test(label)) {
return label;
}
const words = label.split(' ');
const words = label.split(' ').filter(Boolean);
const completedLines: string[] = [];
let nextLine = '';
words.forEach((word, index) => {
Expand Down

0 comments on commit 99644ba

Please sign in to comment.