Skip to content

Commit 07c9e86

Browse files
committed
Import changes from Ruby trunk
1 parent dc576b0 commit 07c9e86

File tree

7 files changed

+16
-17
lines changed

7 files changed

+16
-17
lines changed

lib/rdoc.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# * If you want to include extensions written in C, see RDoc::Parser::C
2121
# * For information on the various markups available in comment blocks, see
2222
# RDoc::Markup.
23-
# * If you want to drive RDoc programatically, see RDoc::RDoc.
23+
# * If you want to drive RDoc programmatically, see RDoc::RDoc.
2424
# * If you want to use the library to format text blocks into HTML, have a look
2525
# at RDoc::Markup.
2626
# * If you want to try writing your own HTML output template, see
@@ -206,7 +206,7 @@
206206
# Stop and start adding new documentation elements to the current container.
207207
# For example, if a class has a number of constants that you don't want to
208208
# document, put a +:stopdoc:+ before the first, and a +:startdoc:+ after the
209-
# last. If you don't specifiy a +:startdoc:+ by the end of the container,
209+
# last. If you don't specify a +:startdoc:+ by the end of the container,
210210
# disables documentation for the entire class or module.
211211
#
212212
# = Other stuff

lib/rdoc/generator/html/html.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
# This is a template for RDoc that uses XHTML 1.0 Transitional and dictates a
88
# bit more of the appearance of the output to cascading stylesheets than the
99
# default. It was designed for clean inline code display, and uses DHTMl to
10-
# toggle the visbility of each method's source with each click on the '[source]'
11-
# link.
10+
# toggle the visibility of each method's source with each click on the
11+
# '[source]' link.
1212
#
1313
# == Authors
1414
#
1515
# * Michael Granger <[email protected]>
1616
#
1717
# Copyright (c) 2002, 2003 The FaerieMUD Consortium. Some rights reserved.
1818
#
19-
# This work is licensed under the Creative Commons Attribution License. To view
20-
# a copy of this license, visit http://creativecommons.org/licenses/by/1.0/ or
21-
# send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California
22-
# 94305, USA.
19+
# This work is licensed under the Creative Commons Attribution License. To
20+
# view a copy of this license, visit
21+
# http://creativecommons.org/licenses/by/1.0/ or send a letter to Creative
22+
# Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.
2323

2424
module RDoc::Generator::HTML::HTML
2525

lib/rdoc/markup.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# RDoc::Markup is intended to be the basis for a family of tools which share
1818
# the common requirement that simple, plain-text should be rendered in a
1919
# variety of different output formats and media. It is envisaged that
20-
# RDoc::Markup could be the basis for formating RDoc style comment blocks,
20+
# RDoc::Markup could be the basis for formatting RDoc style comment blocks,
2121
# Wiki entries, and online FAQs.
2222
#
2323
# = Basic Formatting
@@ -129,7 +129,7 @@
129129
#
130130
# You can extend the RDoc::Markup parser to recognise new markup
131131
# sequences, and to add special processing for text that matches a
132-
# regular epxression. Here we make WikiWords significant to the parser,
132+
# regular expression. Here we make WikiWords significant to the parser,
133133
# and also make the sequences {word} and \<no>text...</no> signify
134134
# strike-through text. When then subclass the HTML output class to deal
135135
# with these:
@@ -197,7 +197,7 @@ def initialize
197197

198198
##
199199
# Add to the sequences used to add formatting to an individual word (such
200-
# as *bold*). Matching entries will generate attibutes that the output
200+
# as *bold*). Matching entries will generate attributes that the output
201201
# formatters can recognize by their +name+.
202202

203203
def add_word_pair(start, stop, name)

lib/rdoc/options.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ def setup_generator
577577
end
578578
end
579579

580-
# Check that the right version of 'dot' is available. Unfortuately this
580+
# Check that the right version of 'dot' is available. Unfortunately this
581581
# doesn't work correctly under Windows NT, so we'll bypass the test under
582582
# Windows.
583583

lib/rdoc/parser/ruby.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,7 @@ def collect_first_comment
14941494
if first_line and tk.text =~ /\A#!/ then
14951495
skip_tkspace
14961496
tk = get_tk
1497-
elsif first_line and tk.text =~ /\A#\s*-\*-/ =~ tk.text then
1497+
elsif first_line and tk.text =~ /\A#\s*-\*-/ then
14981498
first_line = false
14991499
skip_tkspace
15001500
tk = get_tk

lib/rdoc/rdoc.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def parse_dot_doc_file(in_dir, filename, options)
137137
# subdirectories.
138138
#
139139
# The effect of this is that if you want a file with a non-standard
140-
# extension parsed, you must name it explicity.
140+
# extension parsed, you must name it explicitly.
141141

142142
def normalized_file_list(options, relative_files, force_doc = false,
143143
exclude_pattern = nil)

lib/rdoc/ri/descriptions.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
require 'rdoc/markup/fragments'
33
require 'rdoc/ri'
44

5-
#--
5+
##
66
# Descriptions are created by RDoc (in ri_generator) and written out in
77
# serialized form into the documentation tree. ri then reads these to generate
88
# the documentation
9-
#++
109

1110
class RDoc::RI::NamedThing
1211
attr_reader :name
@@ -83,7 +82,7 @@ class RDoc::RI::ModuleDescription < RDoc::RI::Description
8382
attr_accessor :constants
8483
attr_accessor :includes
8584

86-
# merge in another class desscription into this one
85+
# merge in another class description into this one
8786
def merge_in(old)
8887
merge(@class_methods, old.class_methods)
8988
merge(@instance_methods, old.instance_methods)

0 commit comments

Comments
 (0)