Fix bug 4147.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21344 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-11-01 16:59:40 +00:00
parent 0803d07b39
commit 36e14ceb10
2 changed files with 5 additions and 3 deletions

View File

@ -2730,7 +2730,7 @@ void Tabular::plaintextPrintCell(Buffer const & buf, odocstream & os,
void Tabular::plaintext(Buffer const & buf, odocstream & os, void Tabular::plaintext(Buffer const & buf, odocstream & os,
OutputParams const & runparams, int const depth, OutputParams const & runparams, int const depth,
bool onlydata, unsigned char delim) const bool onlydata, char_type delim) const
{ {
// first calculate the width of the single columns // first calculate the width of the single columns
vector<unsigned int> clen(columnCount()); vector<unsigned int> clen(columnCount());
@ -2774,7 +2774,9 @@ void Tabular::plaintext(Buffer const & buf, odocstream & os,
if (isPartOfMultiColumn(i, j)) if (isPartOfMultiColumn(i, j))
continue; continue;
if (onlydata && j > 0) if (onlydata && j > 0)
os << delim; // we don't use operator<< for single UCS4 character.
// see explanation in docstream.h
os.put(delim);
plaintextPrintCell(buf, os, runparams, plaintextPrintCell(buf, os, runparams,
cell, i, j, clen, onlydata); cell, i, j, clen, onlydata);
++cell; ++cell;

View File

@ -359,7 +359,7 @@ public:
/// ///
void plaintext(Buffer const &, odocstream &, void plaintext(Buffer const &, odocstream &,
OutputParams const & runparams, int const depth, OutputParams const & runparams, int const depth,
bool onlydata, unsigned char delim) const; bool onlydata, char_type delim) const;
/// ///
bool isMultiColumn(idx_type cell) const; bool isMultiColumn(idx_type cell) const;
/// ///