Skip to content

Commit

Permalink
Fix Split Page with no content below headings (#1381)
Browse files Browse the repository at this point in the history
* Fix Split Page with no content below headings
#1379

* remove launch
#1379
  • Loading branch information
stevencohn authored May 3, 2024
1 parent 6e42213 commit cf86eb1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions OneMore/Commands/Page/SplitCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,14 @@ private IEnumerable<XElement> GetContent(Heading heading, Heading next)
content.AddRange(after);
}

if (!content.Any())
{
// provide default content - empty line - if header is not followed by anything
content.Add(new XElement(ns + "OE",
new XElement(ns + "T", new XCData(string.Empty))
));
}

return content;
}
}
Expand Down

0 comments on commit cf86eb1

Please sign in to comment.