Skip to content

Commit

Permalink
[ui] Add support for \n in context names
Browse files Browse the repository at this point in the history
  • Loading branch information
jmreidy authored and mmalecki committed Feb 6, 2012
1 parent bbc8e55 commit 4342fe9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/vows/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ this.puts = function (options) {
if (!options.raw) {
args = args.map(function (a) {
return a.replace(/`([^`]+)`/g, function (_, capture) { return stylize(capture, 'italic') })
.replace(/\*([^*]+)\*/g, function (_, capture) { return stylize(capture, 'bold') });
.replace(/\*([^*]+)\*/g, function (_, capture) { return stylize(capture, 'bold') })
.replace(/\n/g, function (_, capture) { return ' \n ' } );
});
}
return options.stream.write(args.join('\n') + options.tail);
Expand Down

0 comments on commit 4342fe9

Please sign in to comment.