]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph.C
\layout -> \begin_layout and missing \end_layout
[lyx.git] / src / paragraph.C
index a15c8220195050bbd849943e3fe24d714bd6b143..5579d6deeea234e75227382628a16d643d69cfa7 100644 (file)
@@ -156,7 +156,7 @@ void Paragraph::write(Buffer const * buf, ostream & os,
        }
 
        // First write the layout
-       os << "\n\\layout " << layout()->name() << '\n';
+       os << "\n\\begin_layout " << layout()->name() << '\n';
 
        params().write(os);
 
@@ -404,8 +404,8 @@ LyXFont const Paragraph::getFontSettings(BufferParams const & bparams,
 }
 
 
-lyx::pos_type 
-Paragraph::getEndPosOfFontSpan(lyx::pos_type pos) const 
+lyx::pos_type
+Paragraph::getEndPosOfFontSpan(lyx::pos_type pos) const
 {
        Assert(pos <= size());