]> git.lyx.org Git - features.git/commitdiff
fix bug #7189 (this worked originally, but after fixing protected \hfill I
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Mon, 20 Dec 2010 20:45:18 +0000 (20:45 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Mon, 20 Dec 2010 20:45:18 +0000 (20:45 +0000)
forgot to recheck \hspace)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36971 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/text.cpp

index 4c15a856961253dc0b984f944413d940d0ccbcb1..0a887b80cb9b0041a2a6b74a00cf43016ea4e117 100644 (file)
@@ -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