From: Georg Baum Date: Mon, 20 Dec 2010 20:45:18 +0000 (+0000) Subject: fix bug #7189 (this worked originally, but after fixing protected \hfill I X-Git-Tag: 2.0.0~1294 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=77a8eb9288566ab0c52dd10bd4557c1f18f687ab;p=features.git fix bug #7189 (this worked originally, but after fixing protected \hfill I forgot to recheck \hspace) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36971 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index 4c15a85696..0a887b80cb 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -2770,7 +2770,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer, if (unit == "\\fill") { if (!starred) { unit = ""; - name = "hfill"; + name = "\\hfill"; } known_hspace = true; } @@ -2815,17 +2815,17 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer, if (t.cs()[0] == 'h' && (known_unit || known_hspace)) { // Literal horizontal length or known variable context.check_layout(os); - begin_inset(os, "Space \\"); + begin_inset(os, "Space "); os << name; if (starred) os << '*'; os << '{'; if (known_hspace) os << unit; - os << "}\n"; + os << "}"; if (known_unit && !known_hspace) - os << "\\length " - << translate_len(length) << '\n'; + os << "\n\\length " + << translate_len(length); end_inset(os); } else if (known_unit || known_vspace) { // Literal vertical length or known variable