mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Issue11: null context causing indentation crash
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b84ebdcb05
commit
511dceec5c
2 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ module REXML
|
||||||
end
|
end
|
||||||
|
|
||||||
def indent to, ind
|
def indent to, ind
|
||||||
if @parent and not @parent.context[:indentstyle].nil? then
|
if @parent and @parent.context and not @parent.context[:indentstyle].nil? then
|
||||||
indentstyle = @parent.context[:indentstyle]
|
indentstyle = @parent.context[:indentstyle]
|
||||||
else
|
else
|
||||||
indentstyle = ' '
|
indentstyle = ' '
|
||||||
|
|
|
@ -22,5 +22,5 @@
|
||||||
module REXML
|
module REXML
|
||||||
Copyright = "Copyright #{Time.now.year} Sean Russell <ser@germane-software.com>"
|
Copyright = "Copyright #{Time.now.year} Sean Russell <ser@germane-software.com>"
|
||||||
Date = "+2004/047"
|
Date = "+2004/047"
|
||||||
Version = "2.7.4.1"
|
Version = "2.7.4.2"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue