File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
- === 3.9.1 / ??
1
+ === 3.9.2 / 2011-08-11
2
+
3
+ * Bug fix
4
+ * Loosened TIDYLINK regexp to allow any content in the link section like:
5
+ <tt>{foo}[rdoc-ref:SomeClass]</tt>
6
+
7
+ === 3.9.1 / 2011-07-31
2
8
3
9
* Bug fixes
4
10
* Fix RDoc::Markup parser for a header followed by a non-text token. Issue
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ def initialize markup = nil
74
74
@markup . add_special ( /((link:|https?:|mailto:|ftp:|www\. )\S +\w )/ , :HYPERLINK )
75
75
76
76
# and links of the form <text>[<url>]
77
- @markup . add_special ( /(((\{ .*?\} )|\b \S +?)\[ \S +?\. \S +? \ ] )/ , :TIDYLINK )
77
+ @markup . add_special ( /(((\{ .*?\} )|\b \S +?)\[ \S +?\] )/ , :TIDYLINK )
78
78
79
79
init_tags
80
80
end
Original file line number Diff line number Diff line change @@ -25,6 +25,12 @@ def test_convert_HYPERLINK_rdoc_ref
25
25
assert_equal "\n <p><a href=\" C1.html\" >C1</a></p>\n " , result
26
26
end
27
27
28
+ def test_convert_TIDYLINK_rdoc_ref
29
+ result = @to . convert '{foo}[rdoc-ref:C1]'
30
+
31
+ assert_equal "\n <p><a href=\" C1.html\" >foo</a></p>\n " , result
32
+ end
33
+
28
34
def test_gen_url
29
35
assert_equal '<a href="C1.html">Some class</a>' ,
30
36
@to . gen_url ( 'rdoc-ref:C1' , 'Some class' )
You can’t perform that action at this time.
0 commit comments