We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e20208 commit 9f867f2Copy full SHA for 9f867f2
lib/elixir/lib/io/ansi.ex
@@ -151,7 +151,7 @@ defmodule IO.ANSI do
151
## Examples
152
153
iex> IO.ANSI.format(["Hello, ", :red, :bright, "world!"], true)
154
- ["Hello, ", "\e[31m", "\e[1m", "world!", "\e[0m"]
+ [[[[[[], "Hello, "], "\e[31m"], "\e[1m"], "world!"] | "\e[0m"]
155
"""
156
def format(chardata, emit \\ terminal?) do
157
do_format(chardata, [], [], emit, :maybe)
@@ -171,7 +171,7 @@ defmodule IO.ANSI do
171
172
173
iex> IO.ANSI.format_fragment([:bright, 'Word'], true)
174
- ["\e[1m", 87, 111, 114, 100]
+ [[[[[[], "\e[1m"], 87], 111], 114], 100]
175
176
def format_fragment(chardata, emit \\ terminal?) do
177
do_format(chardata, [], [], emit, false)
0 commit comments