Skip to content

Commit

Permalink
Wrap statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
ykmnkmi committed Dec 13, 2024
1 parent f690291 commit f01c864
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ class _AstToExpressionVisitor
if (_metadata.template!.preserveWhitespace! ||
value.contains('\u00A0') ||
value.contains(ngSpace) ||
!value.contains('\n')) return replaceNgSpace(value);
!value.contains('\n')) {
return replaceNgSpace(value);
}
return replaceNgSpace(value.replaceAll('\n', '').trimLeft());
}

Expand All @@ -161,7 +163,9 @@ class _AstToExpressionVisitor
if (_metadata.template!.preserveWhitespace! ||
value.contains('\u00A0') ||
value.contains(ngSpace) ||
!value.contains('\n')) return replaceNgSpace(value);
!value.contains('\n')) {
return replaceNgSpace(value);
}
return replaceNgSpace(value.replaceAll('\n', '').trimRight());
}

Expand Down

0 comments on commit f01c864

Please sign in to comment.