mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-17 12:39:54 +08:00
Fix ANSI bold/underline/inverse test to reset after each line.
This commit is contained in:
parent
aadb343296
commit
d3cd8583a2
@ -48,22 +48,22 @@
|
||||
"text": [
|
||||
"This is normal text\n",
|
||||
"\n",
|
||||
"\u001b[01mThis is bold text\n",
|
||||
"\u001b[01mThis is bold text\u001b[00m\n",
|
||||
"\n",
|
||||
"\u001b[04mThis is underlined text\n",
|
||||
"\u001b[04mThis is underlined text\u001b[00m\n",
|
||||
"\n",
|
||||
"\u001b[07mThis is inverse text\n"
|
||||
"\u001b[07mThis is inverse text\u001b[00m\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"print (\"This is normal text\")\n",
|
||||
"print()\n",
|
||||
"print (\"{ESC}01mThis is bold text\".format(**locals()))\n",
|
||||
"print (\"{ESC}01mThis is bold text{RESET}\".format(**locals()))\n",
|
||||
"print()\n",
|
||||
"print (\"{ESC}04mThis is underlined text\".format(**locals()))\n",
|
||||
"print (\"{ESC}04mThis is underlined text{RESET}\".format(**locals()))\n",
|
||||
"print()\n",
|
||||
"print (\"{ESC}07mThis is inverse text\".format(**locals()))"
|
||||
"print (\"{ESC}07mThis is inverse text{RESET}\".format(**locals()))"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user