Skip to content

Commit

Permalink
better whitespace normalization, fixes #10
Browse files Browse the repository at this point in the history
  • Loading branch information
jenseng committed May 8, 2015
1 parent d95c563 commit 3c4d3f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion preprocess.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ function transformationsFor(config) {
var placeholders = {};
var children = [];
var string = translateStringFor(node, wrappers, placeholders, children)
.replace(/ +/g, ' ')
.replace(/\s+/g, ' ')
.trim();
if (Object.keys(wrappers).length || Object.keys(placeholders).length || children.length > 1) {
return componentInterpolatorFor(string, wrappers, placeholders, children, node.loc);
Expand Down

0 comments on commit 3c4d3f3

Please sign in to comment.