mirror of
https://github.com/NixOS/nix
synced 2025-06-27 21:01:16 +02:00
with normaltxt, elide yellow color code instead of canceling it; use normaltxt on plain_string hintfmt
This commit is contained in:
parent
28b079067f
commit
9d1cb0c5e6
2 changed files with 10 additions and 4 deletions
|
@ -120,6 +120,13 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
template<class T>
|
||||
hintformat& operator%(const normaltxt<T> &value)
|
||||
{
|
||||
fmt % value.value;
|
||||
return *this;
|
||||
}
|
||||
|
||||
std::string str() const
|
||||
{
|
||||
return fmt.str();
|
||||
|
@ -142,6 +149,6 @@ inline hintformat hintfmt(const std::string & fs, const Args & ... args)
|
|||
inline hintformat hintfmt(std::string plain_string)
|
||||
{
|
||||
// we won't be receiving any args in this case, so just print the original string
|
||||
return hintfmt("%s", plain_string);
|
||||
return hintfmt("%s", normaltxt(plain_string));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue