diff --git a/lib/rdoc/markup/to_rdoc.rb b/lib/rdoc/markup/to_rdoc.rb index 255c57e0d1..749635f685 100644 --- a/lib/rdoc/markup/to_rdoc.rb +++ b/lib/rdoc/markup/to_rdoc.rb @@ -294,7 +294,7 @@ def end_accepting def handle_regexp_SUPPRESSED_CROSSREF(target) text = target.text - text = text.sub('\\', '') unless in_tt? + text = text.gsub('\\', '') unless in_tt? text end