]> git.lyx.org Git - lyx.git/commitdiff
more whitespace bugs fixed
authorLars Gullik Bjønnes <larsbj@gullik.org>
Wed, 1 Dec 1999 10:46:58 +0000 (10:46 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Wed, 1 Dec 1999 10:46:58 +0000 (10:46 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@347 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
src/buffer.C
src/insets/figinset.C
src/lastfiles.C
src/paragraph.C
src/table.C
src/vspace.C

index 7438ff827a95b4a3ccb57a50860bfad4c98ae8e5..036d0d2f0b22a4d8c972f8f1cdca1ecf08654d95 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,14 @@
 
        * src/mathed/formula.C (LocalDispatch): fix small whitspace bug
        introduced by faulty regex.
+       * src/buffer.C: ditto
+       * src/lastfiles.C: ditto
+       * src/paragraph.C: ditto
+       * src/table.C: ditto
+       * src/vspace.C: ditto
+       * src/insets/figinset.C: ditto
+       Note: most of these is absolutely harmless, except the one in
+       src/mathed formula.C.
 
 1999-11-30  Kayvan A. Sylvan  <kayvan@satyr.sylvan.com>
 
index afa347d04e05238003e54eb6c266df226809a3d8..a0225b519956c55404224f9ab87ef3674336c8b3 100644 (file)
@@ -1746,10 +1746,10 @@ void Buffer::makeLaTeXFile(string const & filename,
                        switch (params.papersize2) {
                        case BufferParams::VM_PAPER_CUSTOM:
                                if (!params.paperwidth.empty())
-                                       LFile += ",paperwidth= "
+                                       LFile += ",paperwidth="
                                                 + params.paperwidth;
                                if (!params.paperheight.empty())
-                                       LFile += ",paperheight= "
+                                       LFile += ",paperheight="
                                                 + params.paperheight;
                                break;
                        case BufferParams::VM_PAPER_USLETTER:
@@ -1807,19 +1807,19 @@ void Buffer::makeLaTeXFile(string const & filename,
                                }
                        }
                        if (!params.topmargin.empty())
-                               LFile += ",tmargin= " + params.topmargin;
+                               LFile += ",tmargin=" + params.topmargin;
                        if (!params.bottommargin.empty())
-                               LFile += ",bmargin= " + params.bottommargin;
+                               LFile += ",bmargin=" + params.bottommargin;
                        if (!params.leftmargin.empty())
-                               LFile += ",lmargin= " + params.leftmargin;
+                               LFile += ",lmargin=" + params.leftmargin;
                        if (!params.rightmargin.empty())
-                               LFile += ",rmargin= " + params.rightmargin;
+                               LFile += ",rmargin=" + params.rightmargin;
                        if (!params.headheight.empty())
-                               LFile += ",headheight= " + params.headheight;
+                               LFile += ",headheight=" + params.headheight;
                        if (!params.headsep.empty())
-                               LFile += ",headsep= " + params.headsep;
+                               LFile += ",headsep=" + params.headsep;
                        if (!params.footskip.empty())
-                               LFile += ",footskip= " + params.footskip;
+                               LFile += ",footskip=" + params.footskip;
                        LFile += "}\n";
                        texrow.newline();
                }
index fd8ab266891a0d1adb902d49007ec5aef66e453e..4d794cecac4b81663c7855d68436fc78602bb4a1 100644 (file)
@@ -1240,7 +1240,7 @@ int InsetFig::DocBook(string & file)
        if(suffixIs(figurename, ".eps"))
                figurename.erase(fname.length() - 5);
 
-       file += "@<graphic fileref= \"" + figurename + "\"></graphic>";
+       file += "@<graphic fileref=\"" + figurename + "\"></graphic>";
        return 0;
 }
 
index 7a08ac16d20378657c8580b99aff025b388e96ff..4f99284a387509ba8f1c1f3ef9b98c4a11552e33 100644 (file)
@@ -40,7 +40,7 @@ void LastFiles::setNumberOfFiles(unsigned int no)
                num_files = no;
        else {
                lyxerr << "LyX: lastfiles: too many files\n"
-                       "\tdefault (= " << int(DEFAULTFILES)
+                       "\tdefault (=" << int(DEFAULTFILES)
                       << ") used." << endl;
                num_files = DEFAULTFILES;
        }
index 4a8103457fc7395691517cd6a5d222e59d9056ab..0ae6d707b5de4333915a06ff3c5189c3cd22e837 100644 (file)
@@ -2088,7 +2088,7 @@ int LyXParagraph::BeginningOfMainBody() const
                char previous_char, temp;
                if (i < size()
                    && (previous_char = GetChar(i)) != LyXParagraph::META_NEWLINE) {
-                       // Yes, this  ^ is supposed to be "= " not "== "
+                       // Yes, this  ^ is supposed to be "= " not "=="
                        ++i;
                        while (i < size()
                               && previous_char != ' '
index 312c460b0c0b6832f67a8e7085f844170a9f9547..4b821991fcf73eda3f0002dcf80ecc0027e69781 100644 (file)
@@ -1475,7 +1475,7 @@ int LyXTable::DocBookEndOfCell(string & file, int cell, int &depth)
                 file += tostr(i+1);
                 file += "' COLNUM='";
                 file += tostr(i+1);
-               file += "' COLSEP= '";
+               file += "' COLSEP='";
                if (i == (columns-1)) {
                     file += '1';
                } else {
@@ -1497,11 +1497,11 @@ int LyXTable::DocBookEndOfCell(string & file, int cell, int &depth)
            addNewlineAndDepth(file,++depth);
             file += "<ROW>";
            addNewlineAndDepth(file,++depth);
-            file += "<ENTRY ALIGN= '";
+            file += "<ENTRY ALIGN='";
             file += getDocBookAlign(0);
            file += "'";
            if (IsMultiColumn(0)) {
-               file += " NAMEST= 'col1' NAMEEND= 'col";
+               file += " NAMEST='col1' NAMEEND='col";
                file += tostr(cells_in_multicolumn(0));
                file += "'";
            }
@@ -1517,13 +1517,13 @@ int LyXTable::DocBookEndOfCell(string & file, int cell, int &depth)
                addNewlineAndDepth(file, depth);
                file += "<ROW>";
                addNewlineAndDepth(file,++depth);
-                file += "<ENTRY ALIGN= '";
+                file += "<ENTRY ALIGN='";
                 file += getDocBookAlign(cell+1);
-                file += "' VALIGN= 'middle'";
+                file += "' VALIGN='middle'";
                if (IsMultiColumn(cell+1)) {
-                   file += " NAMEST= 'col";
+                   file += " NAMEST='col";
                    file += tostr(column_of_cell(cell+1) + 1);
-                   file += "' NAMEEND= 'col";
+                   file += "' NAMEEND='col";
                    file += tostr(column_of_cell(cell+1) +
                        cells_in_multicolumn(cell+1));
                    file += "'";
@@ -1535,13 +1535,13 @@ int LyXTable::DocBookEndOfCell(string & file, int cell, int &depth)
                addNewlineAndDepth(file,--depth);
                 file += "</ENTRY>";
                addNewlineAndDepth(file, depth);
-                file += "<ENTRY ALIGN= '";
+                file += "<ENTRY ALIGN='";
                 file += getDocBookAlign(cell+1);
-                file += "' VALIGN= 'middle'";
+                file += "' VALIGN='middle'";
                if (IsMultiColumn(cell+1)) {
-                   file += " NAMEST= 'col";
+                   file += " NAMEST='col";
                    file += tostr(column_of_cell(cell+1) + 1);
-                   file += "' NAMEEND= 'col";
+                   file += "' NAMEEND='col";
                    file += tostr(column_of_cell(cell+1) +
                        cells_in_multicolumn(cell+1));
                    file += "'";
index 00caff9f828b7d5536a6c2e5370a80a3e5c04647..be093a679f046593085239bb76b2688e9d22bf0f 100644 (file)
@@ -91,7 +91,7 @@ static char nextToken (string & data)
        else {
                string::size_type i;
 
-               // I really mean assignment ("= ") below, not equality!
+               // I really mean assignment ("=") below, not equality!
                if ((i = data.find_last_of("0123456789.")) != string::npos) {
                        if (number_index > 3) return 'E';  // Error
                         string buffer = data.substr(0, i + 1);