From: Lars Gullik Bjønnes Date: Wed, 10 Jan 2001 18:18:30 +0000 (+0000) Subject: lowercase tabular identifiers X-Git-Tag: 1.6.10~21738 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4e839f35c6dfee8c1133cc2ffe7f03f3a3e52305;p=features.git lowercase tabular identifiers git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1312 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/ChangeLog b/ChangeLog index b58c0e3e47..ac658a7b3e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-01-10 Lars Gullik Bjønnes + + * src/tabular.C (Write): write lowercase identifiers + (Read): read lowercase identifiers + 2001-01-10 Jean-Marc Lasgouttes * src/support/lyxstring.C (rfind): better fix (from Dekel). diff --git a/src/tabular.C b/src/tabular.C index a41f430d30..f38c41a0cc 100644 --- a/src/tabular.C +++ b/src/tabular.C @@ -1072,13 +1072,13 @@ string const tostr(LyXTabular::BoxType const & num) void LyXTabular::Write(Buffer const * buf, ostream & os) const { // header line - os << "\n"; // global longtable options - os << "\n"; for (int j = 0; j < columns_; ++j) { - os << "\n"; } for (int i = 0; i < rows_; ++i) { - os << "\n"; } else { - os << "\n"; + os << "\n"; } #endif - os << "\n"; + << "\n"; #if 0 - << "\n"; + << "\n"; #endif } - os << "\n"; + os << "\n"; } - os << "\n"; + os << "\n"; } @@ -1429,7 +1429,8 @@ void LyXTabular::Read(Buffer const * buf, LyXLex & lex) istream & is = lex.getStream(); l_getline(is, line); - if (!prefixIs(line, " got" << + if (!prefixIs(line, " got" << line << ")" << endl; return; } @@ -1487,8 +1488,8 @@ void LyXTabular::ReadNew(Buffer const * buf, istream & is, for (int j = 0; j < columns_; ++j) { l_getline(is,line); - if (!prefixIs(line," got" << + if (!prefixIs(line," got" << line << ")" << endl; return; } @@ -1502,8 +1503,8 @@ void LyXTabular::ReadNew(Buffer const * buf, istream & is, for (int i = 0; i < rows_; ++i) { l_getline(is, line); - if (!prefixIs(line, " got" << + if (!prefixIs(line, " got" << line << ")" << endl; return; } @@ -1512,8 +1513,8 @@ void LyXTabular::ReadNew(Buffer const * buf, istream & is, getTokenValue(line, "newpage", row_info[i].newpage); for (int j = 0; j < columns_; ++j) { l_getline(is, line); - if (!prefixIs(line, " got" << + if (!prefixIs(line, " got" << line << ")" << endl; return; } @@ -1533,20 +1534,20 @@ void LyXTabular::ReadNew(Buffer const * buf, istream & is, cell_info[i][j].inset.Read(buf, lex); l_getline(is, line); } - if (line != "") { - lyxerr << "Wrong tabular format (expected got" << + if (line != "") { + lyxerr << "Wrong tabular format (expected got" << line << ")" << endl; return; } } l_getline(is, line); - if (line != "") { - lyxerr << "Wrong tabular format (expected got" << + if (line != "") { + lyxerr << "Wrong tabular format (expected got" << line << ")" << endl; return; } } - while (line != "") { + while (line != "") { l_getline(is, line); } set_row_column_number_info();