Skip to content

Layout: the list label is wrapped in a P inside Lbl #586

Open

Description

@Tim81

Problem

ListRenderer tags the marker as a P and parents it to the Lbl element, so every label is Lbl > P > MCID.
(origin/main 1c61fa6, src/VellumPdf.Layout/Rendering/ListRenderer.cs.)

230:                 if (!isContinuation)
231:                 {
232:                     var lblElem = new PdfStructElem("Lbl");
233:                     liElem.AddChild(lblElem);
234:                     marker.StructType = "P";
235:                     marker.ParentStructElem = lblElem;

Measured

Measured in the 2026-11-16 handbook research on VellumPdf 2.3.3 (not reproduced for this issue): Lbl > P mcid=5.

Why it matters

The findings file left open whether P is allowed inside Lbl. The planning session read ISO/TS 32005:2023
Table 5 in both pdftotext modes on 2026-11-17: Lbl lists no P among its children and allows content items
directly. So the MCID belongs in Lbl itself. A reader may announce an extra paragraph per item otherwise.
ISO/TS 32005 is the PDF 2.0 table, and ISO 32000-1 14.8.4.3.3 (cited in the findings file) describes Lbl as
holding the label; the brief confirms the 1.7 reading.

Scope

Acceptance

Relates to

Activity

  1. added
    bug
    area/conformance
    area/layout
    on Nov 18, 2026
  2. Tim81 commented on Nov 29, 2026

    @Tim81
    OwnerAuthor

    The ISO audit (docs/conformance-v2.4.md) has skipped tests that wait on this issue; the fix removes their skip and makes them pass.

    • IsoTS32005_7_2_ALabelHoldsItsMarkedContentDirectly (group G3)
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

    area/conformancearea/layoutbug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions