mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-16 16:28:09 +08:00
fix: escape backslash
This commit is contained in:
@@ -403,11 +403,11 @@ TOML11_INLINE sequence escaped(const spec& s)
|
||||
const auto escape_char = [&s] {
|
||||
if(s.v1_1_0_add_escape_sequence_e)
|
||||
{
|
||||
return character_either("\"\'bfnrte");
|
||||
return character_either("\"\\bfnrte");
|
||||
}
|
||||
else
|
||||
{
|
||||
return character_either("\"\'bfnrt");
|
||||
return character_either("\"\\bfnrt");
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user