aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc/generator
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-16 04:59:24 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-16 04:59:24 +0000
commitb7528b5edb1f9148ea00ebb6151720e5943b3f0b (patch)
tree4caf55c53adb188170240f54b924892fbc5f9814 /lib/rdoc/generator
parent97ac172d58d695305c39d555155318edb99f1ea7 (diff)
downloadruby-b7528b5edb1f9148ea00ebb6151720e5943b3f0b.tar.gz
* lib/rdoc.rb: Import RDoc 3.7 release candidate
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/generator')
-rw-r--r--lib/rdoc/generator/markup.rb4
-rw-r--r--lib/rdoc/generator/ri.rb5
-rw-r--r--lib/rdoc/generator/template/darkfish/rdoc.css4
3 files changed, 10 insertions, 3 deletions
diff --git a/lib/rdoc/generator/markup.rb b/lib/rdoc/generator/markup.rb
index 1919a62ec8..c267bb1c13 100644
--- a/lib/rdoc/generator/markup.rb
+++ b/lib/rdoc/generator/markup.rb
@@ -42,7 +42,9 @@ module RDoc::Generator::Markup
show_hash = RDoc::RDoc.current.options.show_hash
hyperlink_all = RDoc::RDoc.current.options.hyperlink_all
this = RDoc::Context === self ? self : @parent
- @formatter = RDoc::Markup::ToHtmlCrossref.new this.path, this, show_hash, hyperlink_all
+
+ @formatter = RDoc::Markup::ToHtmlCrossref.new(this.path, this, show_hash,
+ hyperlink_all)
end
##
diff --git a/lib/rdoc/generator/ri.rb b/lib/rdoc/generator/ri.rb
index e02805e40f..939a165cfb 100644
--- a/lib/rdoc/generator/ri.rb
+++ b/lib/rdoc/generator/ri.rb
@@ -18,11 +18,12 @@ class RDoc::Generator::RI
def initialize options #:not-new:
@options = options
- @store = RDoc::RI::Store.new '.'
@old_siginfo = nil
@current = nil
- @store.dry_run = @options.dry_run
+ @store = RDoc::RI::Store.new '.'
+ @store.dry_run = @options.dry_run
+ @store.encoding = @options.encoding if @options.respond_to? :encoding
end
##
diff --git a/lib/rdoc/generator/template/darkfish/rdoc.css b/lib/rdoc/generator/template/darkfish/rdoc.css
index c5a93ff150..ea91421837 100644
--- a/lib/rdoc/generator/template/darkfish/rdoc.css
+++ b/lib/rdoc/generator/template/darkfish/rdoc.css
@@ -97,6 +97,10 @@ body.file p {
margin: 1em 0;
}
+.indexpage .rdoc-list p, .file .rdoc-list p {
+ margin: 0em 0;
+}
+
.indexpage ol,
.file #documentation ol {
line-height: 160%;