File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11defmodule IEx.ANSIDocs do
22 @ moduledoc false
33
4- @ bullets [ ?* , ?- ]
4+ @ bullets [ ?* , ?- , ?+ ]
55
66 @ doc """
77 Prints the head of the documentation (i.e. the function signature)
Original file line number Diff line number Diff line change @@ -89,14 +89,14 @@ defmodule IEx.AnsiDocsTest do
8989 assert result == "• one two three\n • four"
9090 end
9191
92- test "- nested lists are converted" do
93- result = format ( "- one\n - one.one \n - one.two \n - two " )
94- assert result == "• one\n • one.one \n • one.two \n • two "
92+ test "+ list is converted" do
93+ result = format ( "+ one\n + two \n + three \n " )
94+ assert result == "• one\n • two \n • three \n \e [0m "
9595 end
9696
97- test "- lists with spaces are converted" do
98- result = format ( " - one\n - two \n - three " )
99- assert result == "• one\n • two\n • three "
97+ test "+ and - nested lists are converted" do
98+ result = format ( "- one\n + one.one \n + one.two \n - two " )
99+ assert result == "• one\n • one.one \n • one. two\n • two "
100100 end
101101
102102 test "paragraphs are split" do
You can’t perform that action at this time.
0 commit comments