From 0379ab83a9e8eb1a84563f59cb96beae01dcf4b0 Mon Sep 17 00:00:00 2001 From: jiaosenvip <62206110+jiaosenvip@users.noreply.github.com> Date: Sat, 29 Jul 2023 03:14:11 +0800 Subject: [PATCH] Fix markup.rst Fix a minor problem in the document. There is an extra closing bracket in the document --- docs/source/markup.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/markup.rst b/docs/source/markup.rst index 7644bf86..e5eefc7a 100644 --- a/docs/source/markup.rst +++ b/docs/source/markup.rst @@ -71,7 +71,7 @@ Escaping is important if you construct console markup dynamically, with ``str.fo def greet(name): console.print(f"Hello {name}!") -Calling ``greet("Will")`` will print a greeting, but if you were to call ``greet("[blink]Gotcha![/blink]"])`` then you will also get blinking text, which may not be desirable. The solution is to escape the arguments:: +Calling ``greet("Will")`` will print a greeting, but if you were to call ``greet("[blink]Gotcha![/blink]")`` then you will also get blinking text, which may not be desirable. The solution is to escape the arguments:: from rich.markup import escape def greet(name):