mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix bug #10320.
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.
This commit is contained in:
parent
63cf3297f8
commit
8d65a6d277
@ -1089,7 +1089,7 @@ void writeArgument(ostream & os, string const & id, Layout::latexarg const & arg
|
||||
|
||||
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 :-(
|
||||
|
Loading…
Reference in New Issue
Block a user