-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from cooperaj/internal_whitespace_removal
Remove whitespace in translation keys of more than 2 characters.
- Loading branch information
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
tests/integration/fixtures/tags/trans/strip_internal_whitespace.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--TEST-- | ||
strip internal whitespace from keys | ||
--TEMPLATE-- | ||
<p>{% trans %}If your translation key contains new lines due to syntax indentation we want | ||
to be sure that they're all stripped out{% endtrans %}</p> | ||
--DATA-- | ||
return [] | ||
--EXPECT-- | ||
<p>If your translation key contains new lines due to syntax indentation we want to be sure that they're all stripped out</p> |