Do not output \noindent if paragraph does not support indentation change

Part of: #7320.
This commit is contained in:
Juergen Spitzmueller 2015-05-02 16:34:57 +02:00
parent f07830bb5c
commit 88ecc18e30

View File

@ -2138,8 +2138,12 @@ int Paragraph::Private::startTeXParParams(BufferParams const & bparams,
{ {
int column = 0; int column = 0;
if (params_.noindent() && !layout_->pass_thru bool canindent =
&& (layout_->toggle_indent != ITOGGLE_NEVER)) { (bparams.paragraph_separation == BufferParams::ParagraphIndentSeparation) ?
(layout_->toggle_indent != ITOGGLE_NEVER) :
(layout_->toggle_indent == ITOGGLE_ALWAYS);
if (canindent && params_.noindent() && !layout_->pass_thru) {
os << "\\noindent "; os << "\\noindent ";
column += 10; column += 10;
} }