-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove empty lines by properly mark lines with ERB proper trim_mode flag
- Loading branch information
Showing
16 changed files
with
131 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<% unless klass.extends.empty? then %> | ||
<%- unless klass.extends.empty? then %> | ||
<div id="extends-section" class="nav-section"> | ||
<h3>Extended With Modules</h3> | ||
|
||
<ul class="link-list"> | ||
<% klass.each_extend do |ext| %> | ||
<% unless String === ext.module then %> | ||
<%- klass.each_extend do |ext| -%> | ||
<%- unless String === ext.module then -%> | ||
<li><a class="extend" href="<%= klass.aref_to ext.module.path %>"><%= ext.module.full_name %></a> | ||
<% else %> | ||
<%- else -%> | ||
<li><span class="extend"><%= ext.name %></span> | ||
<% end %> | ||
<% end %> | ||
<%- end -%> | ||
<%- end -%> | ||
</ul> | ||
</div> | ||
<% end %> | ||
<%- end -%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<% unless klass.includes.empty? then %> | ||
<%- unless klass.includes.empty? then %> | ||
<div id="includes-section" class="nav-section"> | ||
<h3>Included Modules</h3> | ||
|
||
<ul class="link-list"> | ||
<% klass.each_include do |inc| %> | ||
<% unless String === inc.module then %> | ||
<%- klass.each_include do |inc| -%> | ||
<%- unless String === inc.module then -%> | ||
<li><a class="include" href="<%= klass.aref_to inc.module.path %>"><%= inc.module.full_name %></a> | ||
<% else %> | ||
<%- else -%> | ||
<li><span class="include"><%= inc.name %></span> | ||
<% end %> | ||
<% end %> | ||
<%- end -%> | ||
<%- end -%> | ||
</ul> | ||
</div> | ||
<% end %> | ||
<%- end -%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<% unless klass.method_list.empty? then %> | ||
<%- unless klass.method_list.empty? then %> | ||
<!-- Method Quickref --> | ||
<div id="method-list-section" class="nav-section"> | ||
<h3>Methods</h3> | ||
|
||
<ul class="link-list" role="directory"> | ||
<% klass.each_method do |meth| %> | ||
<li <% if meth.calls_super %>class="calls-super" <% end %>><a href="#<%= meth.aref %>"><%= meth.singleton ? '::' : '#' %><%= h meth.name %></a> | ||
<% end %> | ||
<%- klass.each_method do |meth| -%> | ||
<li <%- if meth.calls_super %>class="calls-super" <%- end %>><a href="#<%= meth.aref %>"><%= meth.singleton ? '::' : '#' %><%= h meth.name -%></a> | ||
<%- end -%> | ||
</ul> | ||
</div> | ||
<% end %> | ||
<%- end -%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<% simple_files = @files.select { |f| f.text? } %> | ||
<% unless simple_files.empty? then %> | ||
<%- simple_files = @files.select { |f| f.text? } %> | ||
<%- unless simple_files.empty? then -%> | ||
<div id="fileindex-section" class="nav-section"> | ||
<h3>Pages</h3> | ||
|
||
<ul class="link-list"> | ||
<% simple_files.each do |f| %> | ||
<%- simple_files.each do |f| -%> | ||
<li><a href="<%= rel_prefix %>/<%= f.path %>"><%= h f.page_name %></a> | ||
<% end %> | ||
<%- end -%> | ||
</ul> | ||
</div> | ||
<% end %> | ||
<%- end -%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<% if klass.type == 'class' then %> | ||
<%- if klass.type == 'class' then %> | ||
<div id="parent-class-section" class="nav-section"> | ||
<h3>Parent</h3> | ||
|
||
<% if klass.superclass and not String === klass.superclass then %> | ||
<%- if klass.superclass and not String === klass.superclass then -%> | ||
<p class="link"><a href="<%= klass.aref_to klass.superclass.path %>"><%= klass.superclass.full_name %></a> | ||
<% else %> | ||
<%- else -%> | ||
<p class="link"><%= klass.superclass %> | ||
<% end %> | ||
<%- end -%> | ||
</div> | ||
<% end %> | ||
<%- end -%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<% unless klass.sections.length == 1 then %> | ||
<%- unless klass.sections.length == 1 then %> | ||
<div id="sections-section" class="nav-section"> | ||
<h3>Sections</h3> | ||
|
||
<ul class="link-list" role="directory"> | ||
<% klass.sort_sections.each do |section| %> | ||
<%- klass.sort_sections.each do |section| -%> | ||
<li><a href="#<%= section.aref %>"><%= h section.title %></a></li> | ||
<% end %> | ||
<%- end -%> | ||
</ul> | ||
</div> | ||
<% end %> | ||
<%- end -%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.