From: Lars Gullik Bjønnes Date: Wed, 1 Dec 1999 10:46:58 +0000 (+0000) Subject: more whitespace bugs fixed X-Git-Tag: 1.6.10~22491 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=28ed26ab13ccbc24e1ad858784893ac018fabe8f;p=lyx.git more whitespace bugs fixed git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@347 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/ChangeLog b/ChangeLog index 7438ff827a..036d0d2f0b 100644 --- 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 diff --git a/src/buffer.C b/src/buffer.C index afa347d04e..a0225b5199 100644 --- a/src/buffer.C +++ b/src/buffer.C @@ -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(); } diff --git a/src/insets/figinset.C b/src/insets/figinset.C index fd8ab26689..4d794cecac 100644 --- a/src/insets/figinset.C +++ b/src/insets/figinset.C @@ -1240,7 +1240,7 @@ int InsetFig::DocBook(string & file) if(suffixIs(figurename, ".eps")) figurename.erase(fname.length() - 5); - file += "@"; + file += "@"; return 0; } diff --git a/src/lastfiles.C b/src/lastfiles.C index 7a08ac16d2..4f99284a38 100644 --- a/src/lastfiles.C +++ b/src/lastfiles.C @@ -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; } diff --git a/src/paragraph.C b/src/paragraph.C index 4a8103457f..0ae6d707b5 100644 --- a/src/paragraph.C +++ b/src/paragraph.C @@ -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 != ' ' diff --git a/src/table.C b/src/table.C index 312c460b0c..4b821991fc 100644 --- a/src/table.C +++ b/src/table.C @@ -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 += ""; addNewlineAndDepth(file,++depth); - file += " 3) return 'E'; // Error string buffer = data.substr(0, i + 1);