Skip to content

Commit

Permalink
Text introduces newlines to mimic the grammar
Browse files Browse the repository at this point in the history
Fixes the most common use-cases for text
  • Loading branch information
tj committed Oct 5, 2010
1 parent c7c6705 commit c66a392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Expand Up @@ -42,5 +42,5 @@ var escape = exports.escape = function(str) {
*/

exports.text = function(node){
return interpolate(escape(node.join('\\n').trimLeft()));
return interpolate(escape(node.join('\\n').trimLeft() + '\\n'));
};

0 comments on commit c66a392

Please sign in to comment.