* 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>
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:
}
}
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();
}
if(suffixIs(figurename, ".eps"))
figurename.erase(fname.length() - 5);
- file += "@<graphic fileref= \"" + figurename + "\"></graphic>";
+ file += "@<graphic fileref=\"" + figurename + "\"></graphic>";
return 0;
}
num_files = no;
else {
lyxerr << "LyX: lastfiles: too many files\n"
- "\tdefault (= " << int(DEFAULTFILES)
+ "\tdefault (=" << int(DEFAULTFILES)
<< ") used." << endl;
num_files = DEFAULTFILES;
}
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 != ' '
file += tostr(i+1);
file += "' COLNUM='";
file += tostr(i+1);
- file += "' COLSEP= '";
+ file += "' COLSEP='";
if (i == (columns-1)) {
file += '1';
} else {
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 += "'";
}
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 += "'";
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 += "'";
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);