Skip to content

Commit

Permalink
Merge branch 'master' of github.com:drnic/ruby-tmbundle
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed Oct 10, 2010
2 parents c99e353 + 78035a4 commit 9be85aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Support/RubyMate/catch_exception.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
io = IO.for_fd(ENV['TM_ERROR_FD'].to_i)

io.write "<div id='exception_report' class='framed'>\n"
io.write "<p id='exception'><strong>#{e.class.name}:</strong> #{CGI.escapeHTML e.message.sub(/`(\w+)'/, '‘\1’').sub(/ -- /, ' — ')}</p>\n"
io.write "<p id='exception'><strong>#{e.class.name}:</strong> #{CGI.escapeHTML e.message.sub(/`(\w+)'/, "\1")}</p>\n"

io.write "<blockquote><table border='0' cellspacing='4' cellpadding='0'>\n"

Expand Down
2 changes: 1 addition & 1 deletion Support/RubyMate/run_script.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
htmlize(str).gsub(/[EF]+/, "<span style=\"color: red\">\\&</span>") +
"<br style=\"display: none\"/>"
elsif is_test_script
out = str.map do |line|
out = str.chars.map do |line|
if line =~ /^(\s+)(\S.*?):(\d+)(?::in\s*`(.*?)')?/
indent, file, line, method = $1, $2, $3, $4
url, display_name = '', 'untitled document';
Expand Down
1 change: 1 addition & 0 deletions Tests/simple.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
puts "Simple."

0 comments on commit 9be85aa

Please sign in to comment.