Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix x-strings to remove need of double-escaping
  • Loading branch information
adambeynon committed Dec 8, 2013
1 parent 02227a4 commit 25a11a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opal/opal/rspec/text_formatter.rb
Expand Up @@ -55,11 +55,11 @@ def finish_with_code(code)
end

def green(str)
`console.log('\\033[32m' + str + '\\033[0m')`
`console.log('\033[32m' + str + '\033[0m')`
end

def red(str)
`console.log('\\033[31m' + str + '\\033[0m')`
`console.log('\033[31m' + str + '\033[0m')`
end

def short_padding
Expand Down

0 comments on commit 25a11a1

Please sign in to comment.