aboutsummaryrefslogtreecommitdiff
path: root/doc/api/ruby/create_ruby_examples.rb
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/ruby/create_ruby_examples.rb')
-rw-r--r--doc/api/ruby/create_ruby_examples.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/ruby/create_ruby_examples.rb b/doc/api/ruby/create_ruby_examples.rb
index bb4507d84..b396a7e12 100644
--- a/doc/api/ruby/create_ruby_examples.rb
+++ b/doc/api/ruby/create_ruby_examples.rb
@@ -24,7 +24,7 @@ ARGV.each do |example_file|
output.write "<h1>#{example_file}</h1>"
#Grab examples description
- html.scan(/=begin description(.*?)=end/m) {|desc| output.puts "<p>#{desc}</p>"}
+ html.scan(/=begin description(.*?)=end/m) {|desc| output.puts "<p>#{desc[0]}</p>"}
#enclose each line of an =begin block in a comment span
html.gsub!(/=begin description.*?=end/m) do |match|