Layout::write needs to allow for the possility that the name of the
style may contain a space. It seems sufficient just always to quote it.
void Layout::write(ostream & os) const
{
void Layout::write(ostream & os) const
{
- os << "Style " << to_utf8(name_) << '\n';
+ os << "Style \"" << to_utf8(name_) << "\"\n";
if (!category_.empty() && obsoleted_by_.empty())
os << "\tCategory \"" << to_utf8(category_) << "\"\n";
// Can't deduce Copystyle here :-(
if (!category_.empty() && obsoleted_by_.empty())
os << "\tCategory \"" << to_utf8(category_) << "\"\n";
// Can't deduce Copystyle here :-(