diff options
author | Benoit Tigeot <benoit@hopsandfork.com> | 2020-07-02 22:33:09 +0200 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2020-07-22 02:34:58 +0900 |
commit | 7693aa705619752b57de192951cc688338653715 (patch) | |
tree | 49eeedffd893221587baf9c0d2d42a90915bfdc5 /lib/rdoc/generator/template/darkfish/servlet_root.rhtml | |
parent | 38480ad5078ac1d83031d6b9e25070508b9c034e (diff) |
[ruby/rdoc] Remove empty lines from html file by using ERB trim_mode flag
https://github.com/ruby/rdoc/commit/9e27299a46
Diffstat (limited to 'lib/rdoc/generator/template/darkfish/servlet_root.rhtml')
-rw-r--r-- | lib/rdoc/generator/template/darkfish/servlet_root.rhtml | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/lib/rdoc/generator/template/darkfish/servlet_root.rhtml b/lib/rdoc/generator/template/darkfish/servlet_root.rhtml index 3a33659aea..cab3092b17 100644 --- a/lib/rdoc/generator/template/darkfish/servlet_root.rhtml +++ b/lib/rdoc/generator/template/darkfish/servlet_root.rhtml @@ -19,28 +19,28 @@ <p>Here you can browse local documentation from the ruby standard library and your installed gems. -<% extra_dirs = installed.select { |_, _, _, type,| type == :extra } %> -<% unless extra_dirs.empty? %> +<%- extra_dirs = installed.select { |_, _, _, type,| type == :extra } -%> +<%- unless extra_dirs.empty? -%> <h2>Extra Documentation Directories</h2> <p>The following additional documentation directories are available:</p> <ol> - <% extra_dirs.each do |name, href, exists, _, path| %> + <%- extra_dirs.each do |name, href, exists, _, path| -%> <li> - <% if exists %> + <%- if exists -%> <a href="<%= href %>"><%= h name %></a> (<%= h path %>) - <% else %> + <%- else -%> <%= h name %> (<%= h path %>; <i>not available</i>) - <% end %> + <%- end -%> </li> - <% end %> + <%- end -%> </ol> -<% end %> +<%- end -%> -<% gems = installed.select { |_, _, _, type,| type == :gem } %> -<% missing = gems.reject { |_, _, exists,| exists } %> -<% unless missing.empty? then %> +<%- gems = installed.select { |_, _, _, type,| type == :gem } -%> +<%- missing = gems.reject { |_, _, exists,| exists } -%> +<%- unless missing.empty? then -%> <h2>Missing Gem Documentation</h2> <p>You are missing documentation for some of your installed gems. @@ -53,11 +53,10 @@ the following commands. <ul> - <% names = missing.map { |name,| name.sub(/-([^-]*)$/, '') }.uniq %> - <% names.each do |name| %> + <%- names = missing.map { |name,| name.sub(/-([^-]*)$/, '') }.uniq -%> + <%- names.each do |name| -%> <li><kbd>gem rdoc <%=h name %></kbd> - <% end %> + <%- end -%> </ul> -<% end %> +<%- end -%> </main> - |