Disable printing the reset escape code when no style modifiers where applied. (#973)

This commit is contained in:
Nicolas authored and Victor Zverovich committed 2018-12-09 15:57:20 -08:00
1 parent b0f2224719
commit 24594c747e
2 files changed
+8 -1

No files matched your search

+1
View File
@@ -232,4 +232,5 @@ TEST(ColorsTest, Colors) {
"\x1b[1mbold error\x1b[0m");
EXPECT_WRITE(stderr, fmt::print(stderr, fg(fmt::color::blue), "blue log"),
"\x1b[38;2;000;000;255mblue log\x1b[0m");
EXPECT_WRITE(stdout, fmt::print(fmt::text_style(), "hi"), "hi");
}