Skip to content

Commit 1d5152e

Browse files
committed
fix code block
1 parent 7331ca6 commit 1d5152e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/text.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Alternatively, you can construct styled text by calling :meth:`~rich.text.Text.a
2626
text.append(" World!")
2727
console.print(text)
2828

29-
If you would like to use text that is already formatted with ANSI codes, call :meth:`~rich.text.Text.from_ansi` to convert it to a ``Text`` object:
29+
If you would like to use text that is already formatted with ANSI codes, call :meth:`~rich.text.Text.from_ansi` to convert it to a ``Text`` object::
3030

3131
text = Text.from_ansi("\033[1mHello, World!\033[0m")
3232
console.print(text.spans)

0 commit comments

Comments
 (0)