aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc/markup
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-25 00:13:12 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-25 00:13:12 +0000
commit29962f8fb6687010e005cbf311a791e4eafb2eae (patch)
tree1b43e3759ae948a0119ee28738000c3b671c5c76 /lib/rdoc/markup
parent951200ac639980c1d1d8d836c4badfa889f0ccbb (diff)
downloadruby-29962f8fb6687010e005cbf311a791e4eafb2eae.tar.gz
Enable RDoc debugging only with $DEBUG_RDOC
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/markup')
-rw-r--r--lib/rdoc/markup/simple_markup/inline.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rdoc/markup/simple_markup/inline.rb b/lib/rdoc/markup/simple_markup/inline.rb
index 9ca5857358..120d347be6 100644
--- a/lib/rdoc/markup/simple_markup/inline.rb
+++ b/lib/rdoc/markup/simple_markup/inline.rb
@@ -246,17 +246,17 @@ module SM
def flow(str)
@str = str
- puts("Before flow, str='#{@str.dump}'") if $DEBUG
+ puts("Before flow, str='#{@str.dump}'") if $DEBUG_RDOC
mask_protected_sequences
@attrs = AttrSpan.new(@str.length)
- puts("After protecting, str='#{@str.dump}'") if $DEBUG
+ puts("After protecting, str='#{@str.dump}'") if $DEBUG_RDOC
convert_attrs(@str, @attrs)
convert_html(@str, @attrs)
convert_specials(str, @attrs)
unmask_protected_sequences
- puts("After flow, str='#{@str.dump}'") if $DEBUG
+ puts("After flow, str='#{@str.dump}'") if $DEBUG_RDOC
return split_into_flow
end
@@ -284,7 +284,7 @@ module SM
def split_into_flow
- display_attributes if $DEBUG
+ display_attributes if $DEBUG_RDOC
res = []
current_attr = 0