Skip to content

Commit b17e948

Browse files
committed
Escape directive-like document content
1 parent 5d04e3d commit b17e948

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

History.rdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
* Moved old DEVELOPERS file to CONTRIBUTING to match github conventions.
164164
* TomDoc output now has a "Returns" heading. Issue #234 by Brian Henderson
165165
* Metaprogrammed methods can now use the :args: directive in addition to the
166-
:call-seq: directive. Issue #236 by Mike Moore.
166+
\:call-seq: directive. Issue #236 by Mike Moore.
167167
* Sections can be linked to using "@" like labels. If a section and a label
168168
have the same name the section will be preferred. Issue #233 by Brian
169169
Henderson.

doc/rdoc/markup_reference.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,7 @@ def dummy_instance_method(foo, bar); end;
12451245
#
12461246
# Here is the <tt>:call-seq:</tt> directive given for the method:
12471247
#
1248-
# :call-seq:
1248+
# \:call-seq:
12491249
# call_seq_directive(foo, bar)
12501250
# Can be anything -> bar
12511251
# Also anything more -> baz or bat

lib/rdoc/parser/ruby.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
# # :singleton-method: some_method!
121121
#
122122
# You can define arguments for metaprogrammed methods via either the
123-
# :call-seq:, :arg: or :args: directives.
123+
# \:call-seq:, :arg: or :args: directives.
124124
#
125125
# Additionally you can mark a method as an attribute by
126126
# using :attr:, :attr_reader:, :attr_writer: or :attr_accessor:. Just like

0 commit comments

Comments
 (0)