InsetHFill. This is possible because InsetHFill is the only inset so
far without parameters.
* src/insets/insetcommandparams.C
(InsetCommandParams::getCommand): Add {} to commands without
parameters.
* src/insets/insethfill.[Ch]
(InsetHFill::latex): Remove
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15736
a592a061-630c-0410-9148-
cb99ea01b6c8
} else
s += '{' + params_[i] + '}';
}
+ if (info_->n == 0)
+ // Make sure that following stuff does not change the
+ // command name.
+ s += "{}";
return s;
}
}
-int InsetHFill::latex(Buffer const &, odocstream & os,
- OutputParams const &) const
-{
- os << getCommand() << "{}";
- return 0;
-}
-
-
int InsetHFill::plaintext(Buffer const &, odocstream & os,
OutputParams const &) const
{
///
InsetBase::Code lyxCode() const { return InsetBase::HFILL_CODE; }
///
- int latex(Buffer const &, odocstream &,
- OutputParams const &) const;
- ///
int plaintext(Buffer const &, odocstream &,
OutputParams const & runparams) const;
///