From: Jean-Marc Lasgouttes Date: Thu, 23 Oct 2008 13:12:19 +0000 (+0000) Subject: fix bug 5349: properly quote InsetInfo argument X-Git-Tag: 1.6.10~2898 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0790ad1b720c4d8902d2f1aedf15003ae3a300c3;p=features.git fix bug 5349: properly quote InsetInfo argument git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27055 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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_); }