forked from lix-project/lix
Update src/libutil/fmt.hh
Co-authored-by: John Ericson <git@JohnEricson.me>
This commit is contained in:
parent
be4f444175
commit
28b079067f
|
@ -139,11 +139,9 @@ inline hintformat hintfmt(const std::string & fs, const Args & ... args)
|
||||||
return f;
|
return f;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline hintformat hintfmt(std::string fs)
|
inline hintformat hintfmt(std::string plain_string)
|
||||||
{
|
{
|
||||||
// we won't be receiving any args in this case, so escape all percents.
|
// we won't be receiving any args in this case, so just print the original string
|
||||||
boost::replace_all(fs, "%", "%%");
|
return hintfmt("%s", plain_string);
|
||||||
hintformat f(fs);
|
|
||||||
return f;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue