commit 8d65a6d2776268a4c4762a5450844ade3fb5a8df
Author: Richard Heck <[email protected]>
Date:   Thu Aug 4 17:45:10 2016 -0400

    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.
---
 src/Layout.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Layout.cpp b/src/Layout.cpp
index db8c317..d6a01c9 100644
--- a/src/Layout.cpp
+++ b/src/Layout.cpp
@@ -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 :-(

Reply via email to