diff options
author | Philip Chimento <philip@endlessm.com> | 2015-06-18 13:53:01 -0700 |
---|---|---|
committer | Philip Chimento <philip@endlessm.com> | 2015-06-18 13:53:01 -0700 |
commit | 0e2e2b25766b33e98860b59d1363be528477519d (patch) | |
tree | fa2e6fea86af4db60c885433fd10cfb1d8466cdb /test/tools/test.html | |
parent | b290a1214d0e78fb0a613b232b15d3e423292e1e (diff) |
Handle excess whitespace in strings
Whitespace between words and tags doesn't matter to HTML. Indeed, the
text in a translatable element may be formatted any way over any number
of lines, so we normalize all consecutive whitespace to be just one space
character and strip whitespace from the beginning and end of the strings.
This is so that translators are not confronted with strange newlines and
whitespace on Transifex.
[endlessm/eos-sdk#3291]
Diffstat (limited to 'test/tools/test.html')
-rw-r--r-- | test/tools/test.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/tools/test.html b/test/tools/test.html index 4dfda70..9f7e341 100644 --- a/test/tools/test.html +++ b/test/tools/test.html @@ -15,6 +15,10 @@ <nav id="finance-nav"> </nav> </div> + <p name="translatable"> + This is a string that is spread over multiple lines, + but that doesn't matter to HTML. + </p> </section> </body> </html> |