mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-02 23:21:45 +01:00
Disable printing the reset escape code when no style modifiers where applied. (#973)
This commit is contained in:
committed by
Victor Zverovich
parent
b0f2224719
commit
24594c747e
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user