Fix ANSI bold/underline/inverse test to reset after each line.

This commit is contained in:
Tony Cebzanov 2017-02-14 08:56:55 -05:00
parent aadb343296
commit d3cd8583a2

View File

@ -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()))"
]
},
{