From 0790ad1b720c4d8902d2f1aedf15003ae3a300c3 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 23 Oct 2008 13:12:19 +0000 Subject: [PATCH] fix bug 5349: properly quote InsetInfo argument git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27055 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetInfo.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/insets/InsetInfo.cpp b/src/insets/InsetInfo.cpp index 446dc4ca4e..0704c4d819 100644 --- a/src/insets/InsetInfo.cpp +++ b/src/insets/InsetInfo.cpp @@ -129,7 +129,7 @@ void InsetInfo::read(Lexer & lex) token = lex.getString(); type_ = nameTranslator().find(token); } else if (token == "arg") { - lex.next(); + lex.next(true); name_ = lex.getString(); } else if (token == "\\end_inset") break; @@ -147,7 +147,8 @@ void InsetInfo::read(Lexer & lex) void InsetInfo::write(ostream & os) const { - os << "Info\ntype \"" << infoType() << "\"\narg \"" << name_ << '\"'; + os << "Info\ntype \"" << infoType() + << "\"\narg " << Lexer::quoteString(name_); } -- 2.39.2