Merge pull request #14163 from overleaf/ae-maketitle-empty-lines

[visual] Preserve empty lines after maketitle

GitOrigin-RevId: c5f040567e220069f96d6962d8bd40334c9f68c8
This commit is contained in:
Alf Eaton 2023-08-11 09:10:47 +01:00 committed by Copybot
parent 3ae32f8332
commit 32d5c99cdc

View file

@ -843,7 +843,7 @@ export const atomicDecorations = (options: Options) => {
if (shouldDecorate(state, nodeRef)) {
const line = state.doc.lineAt(nodeRef.from)
const from = extendBackwardsOverEmptyLines(state.doc, line)
const to = extendForwardsOverEmptyLines(state.doc, line)
const { to } = state.doc.lineAt(nodeRef.to)
if (shouldDecorate(state, { from, to })) {
decorations.push(