mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +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;
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user