mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
more whitespace bugs fixed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@347 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
825e70d124
commit
28ed26ab13
@ -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>
|
||||
|
||||
|
18
src/buffer.C
18
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();
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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 != ' '
|
||||
|
22
src/table.C
22
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 += "<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 += "'";
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user