File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1+ ## [ 0.4.30] ( https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.29...v0.4.30 )
2+
3+ * unescaping of empty line fixed
4+ [ RUBY-16600] ( https://youtrack.jetbrains.com/issue/RUBY-16600 )
5+
16## [ 0.4.29] ( https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.28...v0.4.29 )
27
38* Fixed problem with evaluating "%"
Original file line number Diff line number Diff line change @@ -66,8 +66,9 @@ def options
6666 end
6767
6868 def unescape_incoming ( str )
69- str . gsub ( /((?:^|[^\\ ])(?:\\ \\ )*)\\ n/ , "\\ 1\n " ) .
70- gsub ( /\\ \\ / , '\\' )
69+ str . gsub ( /((?:^|[^\\ ])(?:\\ \\ )*)((?:\\ n)+)/ ) do |_ |
70+ $1 + "\n " * ( $2. size / 2 )
71+ end . gsub ( /\\ \\ / , '\\' )
7172 end
7273 end
7374
Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ def test_something
2828 do_test ( '"\\\\\\n".size' , "\" \\ \n \" .size" )
2929 end
3030
31+ def test_two_newlines
32+ do_test ( 'hello\n\nworld' , "hello\n \n world" )
33+ end
34+
3135 def do_test ( input , expected_result )
3236 assert_equal ( expected_result , Debugger ::Command . unescape_incoming ( input ) )
3337 end
You can’t perform that action at this time.
0 commit comments