mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
* src/insets/insettabular.[Ch]: fix plaintext(); code formatting
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17236 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9889abe3af
commit
f7d54f2afc
@ -1093,22 +1093,24 @@ bool InsetTabular::getStatus(LCursor & cur, FuncRequest const & cmd,
|
||||
|
||||
|
||||
int InsetTabular::latex(Buffer const & buf, odocstream & os,
|
||||
OutputParams const & runparams) const
|
||||
OutputParams const & runparams) const
|
||||
{
|
||||
return tabular.latex(buf, os, runparams);
|
||||
}
|
||||
|
||||
|
||||
int InsetTabular::plaintext(Buffer const & buf, odocstream & os,
|
||||
OutputParams const & runparams) const
|
||||
OutputParams const & runparams) const
|
||||
{
|
||||
int const dp = runparams.linelen ? runparams.depth : 0;
|
||||
return tabular.plaintext(buf, os, runparams, dp, false, 0);
|
||||
os << '\n'; // output table on a new line
|
||||
int const dp = runparams.linelen > 0 ? runparams.depth : 0;
|
||||
tabular.plaintext(buf, os, runparams, dp, false, 0);
|
||||
return runparams.linelen; // start with column 0 in new line
|
||||
}
|
||||
|
||||
|
||||
int InsetTabular::docbook(Buffer const & buf, odocstream & os,
|
||||
OutputParams const & runparams) const
|
||||
OutputParams const & runparams) const
|
||||
{
|
||||
int ret = 0;
|
||||
InsetBase * master = 0;
|
||||
|
@ -83,13 +83,13 @@ public:
|
||||
bool display() const { return tabular.isLongTabular(); }
|
||||
///
|
||||
int latex(Buffer const &, odocstream &,
|
||||
OutputParams const &) const;
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int plaintext(Buffer const &, odocstream &,
|
||||
OutputParams const &) const;
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int docbook(Buffer const &, odocstream &,
|
||||
OutputParams const &) const;
|
||||
OutputParams const &) const;
|
||||
///
|
||||
void validate(LaTeXFeatures & features) const;
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user