fix: check inline table does not include LF

This commit is contained in:
ToruNiina
2019-06-29 16:39:54 +09:00
parent 0fc0967f6f
commit c272188060

View File

@@ -415,7 +415,8 @@ struct serializer
token += " = ";
}
token += this->make_inline_table(v);
if(token.size() < this->width_)
if(token.size() < this->width_ &&
token.end() == std::find(token.begin(), token.end(), '\n'))
{
return token;
}