mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Enable RDoc debugging only with $DEBUG_RDOC
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
951200ac63
commit
29962f8fb6
5 changed files with 32 additions and 28 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue