diff --git a/lib/ex_doc/formatter/html/templates/sidebar_template.eex b/lib/ex_doc/formatter/html/templates/sidebar_template.eex index ac59356b3..17223ca03 100644 --- a/lib/ex_doc/formatter/html/templates/sidebar_template.eex +++ b/lib/ex_doc/formatter/html/templates/sidebar_template.eex @@ -40,14 +40,14 @@ - +
+ +
<%= if nodes_map.modules != [] do %> - + <% end %> <%= if nodes_map.tasks != [] do %> - + <% end %> diff --git a/test/ex_doc/formatter/html/templates_test.exs b/test/ex_doc/formatter/html/templates_test.exs index 641937e11..a9e57705b 100644 --- a/test/ex_doc/formatter/html/templates_test.exs +++ b/test/ex_doc/formatter/html/templates_test.exs @@ -243,13 +243,11 @@ defmodule ExDoc.Formatter.HTML.TemplatesTest do }) assert content =~ - ~r{
  • [\s\n]*[\s\n]*
  • } + ~r{
  • [\s\n]*[\s\n]*
  • } assert content =~ - ~r{} + ~r{} - refute content =~ ~r{id="exceptions-list-tab-button">} - refute content =~ ~r{id="exceptions-full-list">} refute content =~ ~r{id="tasks-list-tab-button"} refute content =~ ~r{id="tasks-full-list"} end