Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki
This commit is contained in:
commit
de44b81020
|
@ -13,15 +13,15 @@
|
||||||
<meta name="defaultView" content="slideshow" />
|
<meta name="defaultView" content="slideshow" />
|
||||||
<meta name="controlVis" content="hidden" />
|
<meta name="controlVis" content="hidden" />
|
||||||
<!-- style sheet links -->
|
<!-- style sheet links -->
|
||||||
<link rel="stylesheet" href="/s5/ui/core/outline.css" type="text/css" media="screen" id="outlineStyle" />
|
<%= stylesheet_link_tag "/s5/ui/core/outline.css", :media => 'screen', :id => 'outlineStyle' %>
|
||||||
<link rel="stylesheet" href="/s5/ui/core/print.css" type="text/css" media="print" id="slidePrint" />
|
<%= stylesheet_link_tag "/s5/ui/core/print.css", :media => 'print', :id => 'slidePrint' %>
|
||||||
<link rel="stylesheet" href="/s5/ui/core/opera.css" type="text/css" media="projection" id="operaFix" />
|
<%= stylesheet_link_tag "/s5/ui/core/opera.css", :media => 'projection', :id => 'operaFix' %>
|
||||||
<link rel="stylesheet" href="/s5/ui/core/math.css" type="text/css" media="all" id="mathStyle" />
|
<%= stylesheet_link_tag "/s5/ui/core/math.css", :media => 'all', :id => 'mathStyle' %>
|
||||||
<link rel="stylesheet" href="/s5/themes/<%=@s5_theme%>/slides.css" type="text/css" media="projection" id="slideProj" />
|
<%= stylesheet_link_tag "/s5/themes/#{@s5_theme}/slides.css", :media => 'projection', :id => 'slideProj' %>
|
||||||
|
|
||||||
<!-- S5 JS -->
|
<!-- S5 JS -->
|
||||||
<script src="/s5/ui/core/slides.js" type="text/javascript"></script>
|
<%= javascript_include_tag "/s5/ui/core/slides.js" %>
|
||||||
<script src="/javascripts/prototype.js" type="text/javascript"></script>
|
<%= javascript_include_tag 'prototype' %>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
|
|
@ -308,7 +308,7 @@ module XHTML #:nodoc:
|
||||||
|
|
||||||
# Returns non-+nil+ if this tag can contain child nodes.
|
# Returns non-+nil+ if this tag can contain child nodes.
|
||||||
def childless?(xml = false)
|
def childless?(xml = false)
|
||||||
return false if xml && @closing.nil?
|
return false if xml && @closing.nil?
|
||||||
# !@closing.nil? ||
|
# !@closing.nil? ||
|
||||||
@name =~ /^(img|br|hr|link|meta|area|base|basefont|
|
@name =~ /^(img|br|hr|link|meta|area|base|basefont|
|
||||||
col|frame|input|isindex|param)$/ox
|
col|frame|input|isindex|param)$/ox
|
||||||
|
@ -327,7 +327,7 @@ module XHTML #:nodoc:
|
||||||
s << "/" if (@children.empty? && @closing == :self) or self.childless?
|
s << "/" if (@children.empty? && @closing == :self) or self.childless?
|
||||||
s << ">"
|
s << ">"
|
||||||
@children.each { |child| s << child.to_s }
|
@children.each { |child| s << child.to_s }
|
||||||
s << "</#{@name}>" if @closing != :self && !@closing.nil? && !@children.empty?
|
s << "</#{@name}>" unless @closing == :self or self.childless? or @children.empty?
|
||||||
s.join
|
s.join
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue