Skip to content

3.0: draw every level of a nested list by default, and refuse at AddChild what the layout cannot draw #771

Backlog

Description

@Tim81

Why

2.4 draws list levels past the second only when the document opts in (#483, PR #758), because drawing them adds lines
to documents that 2.x saved with two levels, and 2.x keeps a valid file's bytes. With the setting off, items below
level 2 are left out and reported once per list. A loop, a chain past ListItem.MaxNestingDepth and a fault below
level 2 are found only at Save, because AddChild must not throw anything new in 2.x. The list renderer also keeps
the layout of before #476 and #685 (the twin) for lists the document cannot place with the new layout, and that twin
draws two levels.

Proposal

In 3.0, every level is drawn and the setting is removed. AddChild refuses a loop and a chain past the bound where the
child is added (ArgumentException), and a fault in a nested item is refused as it is at level 1. The twin goes with
#688, so one layout draws every level.

Acceptance

  • No setting for nesting; a nested list draws every level by default.
  • AddChild refuses a loop and a chain past the bound, with the exception documented on the member.
  • The 3.0 changelog lists the byte changes for documents with items below level 2.

Related: #483, #545, #688, #750.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions