mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Insert a separator only when the paragraph is empty.
This commit is contained in:
parent
6e3a4ecfe7
commit
a8ab3379d9
@ -1107,13 +1107,11 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
|
||||
prev = pit - 1;
|
||||
}
|
||||
if (prev < pit && cur.pos() == par.beginOfBody()
|
||||
&& !par.isEnvSeparator(par.size() ? par.size() - 1 : 0)
|
||||
&& !par.size() && !par.isEnvSeparator(cur.pos())
|
||||
&& !par.layout().isCommand()
|
||||
&& pars_[prev].layout() != par.layout()
|
||||
&& pars_[prev].layout().isEnvironment()
|
||||
&& (!nextpar.isEnvSeparator(nextpar.size() ? nextpar.size() - 1 : 0)
|
||||
|| nextpar.layout().isCommand()
|
||||
|| nextpar.layout().isEnvironment())) {
|
||||
&& !nextpar.isEnvSeparator(nextpar.beginOfBody())) {
|
||||
if (par.layout().isEnvironment()
|
||||
&& pars_[prev].getDepth() == par.getDepth()) {
|
||||
docstring const layout = par.layout().name();
|
||||
|
Loading…
Reference in New Issue
Block a user