[前][次][番号順一覧][スレッド一覧]

ruby-changes:20886

From: drbrain <ko1@a...>
Date: Fri, 12 Aug 2011 03:32:01 +0900 (JST)
Subject: [ruby-changes:20886] drbrain:r32935 (trunk): * lib/rdoc: Import RDoc 3.9.2. Fixes TIDYLINK for HTML output.

drbrain	2011-08-12 03:31:49 +0900 (Fri, 12 Aug 2011)

  New Revision: 32935

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32935

  Log:
    * lib/rdoc:  Import RDoc 3.9.2.  Fixes TIDYLINK for HTML output.

  Modified files:
    trunk/ChangeLog
    trunk/lib/rdoc/markup/to_html.rb
    trunk/lib/rdoc.rb
    trunk/test/rdoc/test_rdoc_markup_to_html_crossref.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 32934)
+++ ChangeLog	(revision 32935)
@@ -1,3 +1,7 @@
+Fri Aug 12 03:24:35 2011  Eric Hodel  <drbrain@s...>
+
+	* lib/rdoc:  Import RDoc 3.9.2.  Fixes TIDYLINK for HTML output.
+
 Thu Aug 11 15:37:42 2011  Hiroshi Nakamura  <nahi@r...>
 
 	* variable.c (autoload_delete): An autoload entry is still in a
Index: lib/rdoc.rb
===================================================================
--- lib/rdoc.rb	(revision 32934)
+++ lib/rdoc.rb	(revision 32935)
@@ -104,7 +104,7 @@
   ##
   # RDoc version you are using
 
-  VERSION = '3.9.1'
+  VERSION = '3.9.2'
 
   ##
   # Method visibilities
Index: lib/rdoc/markup/to_html.rb
===================================================================
--- lib/rdoc/markup/to_html.rb	(revision 32934)
+++ lib/rdoc/markup/to_html.rb	(revision 32935)
@@ -74,7 +74,7 @@
     @markup.add_special(/((link:|https?:|mailto:|ftp:|www\.)\S+\w)/, :HYPERLINK)
 
     # and links of the form  <text>[<url>]
-    @markup.add_special(/(((\{.*?\})|\b\S+?)\[\S+?\.\S+?\])/, :TIDYLINK)
+    @markup.add_special(/(((\{.*?\})|\b\S+?)\[\S+?\])/, :TIDYLINK)
 
     init_tags
   end
Index: test/rdoc/test_rdoc_markup_to_html_crossref.rb
===================================================================
--- test/rdoc/test_rdoc_markup_to_html_crossref.rb	(revision 32934)
+++ test/rdoc/test_rdoc_markup_to_html_crossref.rb	(revision 32935)
@@ -25,6 +25,12 @@
     assert_equal "\n<p><a href=\"C1.html\">C1</a></p>\n", result
   end
 
+  def test_convert_TIDYLINK_rdoc_ref
+    result = @to.convert '{foo}[rdoc-ref:C1]'
+
+    assert_equal "\n<p><a href=\"C1.html\">foo</a></p>\n", result
+  end
+
   def test_gen_url
     assert_equal '<a href="C1.html">Some class</a>',
                  @to.gen_url('rdoc-ref:C1', 'Some class')

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]