]> git.lyx.org Git - features.git/commitdiff
whitespace to sync my tree
authorAndré Pönitz <poenitz@gmx.net>
Tue, 11 Mar 2003 16:38:37 +0000 (16:38 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Tue, 11 Mar 2003 16:38:37 +0000 (16:38 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6449 a592a061-630c-0410-9148-cb99ea01b6c8

src/paragraph.C
src/text2.C

index 7e8470af8f98420f7181ae931206b9f8d76666af..866d42471fb5f609de6ec6128fac91dd14008849 100644 (file)
@@ -726,10 +726,8 @@ void Paragraph::makeSameLayout(Paragraph const * par)
 
 int Paragraph::stripLeadingSpaces()
 {
-       if (layout()->free_spacing ||
-           isFreeSpacing()) {
+       if (layout()->free_spacing || isFreeSpacing())
                return 0;
-       }
 
        int i = 0;
        while (!empty() && (isNewline(0) || isLineSeparator(0))) {
@@ -786,15 +784,13 @@ Paragraph::depth_type Paragraph::getDepth() const
 
 Paragraph::depth_type Paragraph::getMaxDepthAfter() const
 {
-       bool const isenv = layout()->isEnvironment();
-
-       if (isenv)
+       if (layout()->isEnvironment())
                return params().depth() + 1;
        else
                return params().depth();
-
 }
 
+
 char Paragraph::getAlign() const
 {
        return params().align();
index 8e36ef99a313b122c3e08697e4eacaa737c0878f..baf28126b08815f2159b4ca967de8b71628553fd 100644 (file)
@@ -515,7 +515,7 @@ void LyXText::setLayout(BufferView * bview, string const & layout)
 
 // increment depth over selection and
 // make a total rebreak of those paragraphs
-void  LyXText::incDepth(BufferView * bview)
+void LyXText::incDepth(BufferView * bview)
 {
        // If there is no selection, just use the current paragraph
        if (!selection.set()) {