File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
lib/ex_doc/formatter/html Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ defmodule ExDoc.Formatter.HTML.Templates do
1515 end
1616
1717 @ doc """
18- Returns the title with `<wbr>` after each fullstop, allowing word breaks in long module names.
18+ Returns the title with `<wbr / >` after each fullstop, allowing word breaks in long module names.
1919 """
2020 def breakable_module_title ( title ) when is_binary ( title ) do
21- String . replace ( title , "." , ".<wbr>" )
21+ String . replace ( title , "." , ".<wbr / >" )
2222 end
2323
2424 @ doc """
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ defmodule ExDoc.Formatter.EPUB.TemplatesTest do
116116 content = Templates . module_template ( formatter_config ( ) , module_node )
117117
118118 assert content =~ ~r{ <title>XPTO.NestedModule [^<]*</title>}
119- assert content =~ ~r{ <h1 id="content">\s *XPTO.<wbr>NestedModule\s *}
119+ assert content =~ ~r{ <h1 id="content">\s *XPTO.<wbr / >NestedModule\s *}
120120 end
121121
122122 test "outputs the functions and docstrings" do
Original file line number Diff line number Diff line change @@ -525,7 +525,7 @@ defmodule ExDoc.Formatter.HTML.TemplatesTest do
525525 test "add word breaks to title" , context do
526526 content = get_module_template ( [ CompiledWithDocs.Nested ] , context )
527527
528- assert content =~ "CompiledWithDocs.<wbr>Nested"
528+ assert content =~ "CompiledWithDocs.<wbr / >Nested"
529529 end
530530
531531 test "do not output overlapping functions, causing duplicate IDs" , context do
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ defmodule ExDoc.Formatter.HTMLTest do
117117 assert content =~ ~r{ <p>moduledoc</p>}
118118
119119 assert content =~
120- ~r{ <a href="CompiledWithDocs.Nested.html" translate="no">CompiledWithDocs.<wbr>Nested</a>}
120+ ~r{ <a href="CompiledWithDocs.Nested.html" translate="no">CompiledWithDocs.<wbr / >Nested</a>}
121121
122122 assert content =~
123123 ~r{ <a href="Mix.Tasks.TaskWithDocs.html" translate="no">mix task_with_docs</a>}
You can’t perform that action at this time.
0 commit comments