We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d3862a commit 41ad319Copy full SHA for 41ad319
lib/rdoc/markup/formatter.rb
@@ -90,7 +90,7 @@ def add_regexp_handling_RDOCLINK
90
91
def add_regexp_handling_TIDYLINK
92
@markup.add_regexp_handling(/(?:
93
- \{.*?\} | # multi-word label
+ \{[^{}]*\} | # multi-word label
94
\b[^\s{}]+? # single-word label
95
)
96
test/rdoc/test_rdoc_markup_formatter.rb
@@ -104,6 +104,12 @@ def @to.handle_regexp_TIDYLINK target
104
formatted = document.accept @to
105
106
assert_equal '<{foo}[rdoc-label:bar]>.', formatted
107
+
108
+ document = doc(para('<tt>{abc}</tt>: {foo}[rdoc-label:bar].'))
109
110
+ formatted = document.accept @to
111
112
+ assert_equal '<code>{abc}</code>: <{foo}[rdoc-label:bar]>.', formatted
113
end
114
115
def test_parse_url
0 commit comments