jenseng / react-i18nliner

translate="yes" all the things
MIT License
45 stars 15 forks source link

normalize whitespace from extracted content (not attribute) strings #10

Closed jenseng closed 9 years ago

jenseng commented 9 years ago

this is complementary to #1 ... we should remove extraneous whitespace from the extracted string if it's content (not an attribute), since whitespace is not significant in html ... basically .replace(/\s+/g, ' ').trim();, just line i18nliner-handlebars does