mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Do not output \noindent if paragraph does not support indentation change
Part of: #7320.
This commit is contained in:
parent
f07830bb5c
commit
88ecc18e30
@ -2138,8 +2138,12 @@ int Paragraph::Private::startTeXParParams(BufferParams const & bparams,
|
||||
{
|
||||
int column = 0;
|
||||
|
||||
if (params_.noindent() && !layout_->pass_thru
|
||||
&& (layout_->toggle_indent != ITOGGLE_NEVER)) {
|
||||
bool canindent =
|
||||
(bparams.paragraph_separation == BufferParams::ParagraphIndentSeparation) ?
|
||||
(layout_->toggle_indent != ITOGGLE_NEVER) :
|
||||
(layout_->toggle_indent == ITOGGLE_ALWAYS);
|
||||
|
||||
if (canindent && params_.noindent() && !layout_->pass_thru) {
|
||||
os << "\\noindent ";
|
||||
column += 10;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user