Skip to content

Feature: Word setting 'don't add space between paragraphs of the same style' is not respected in lists #2068

@caio-pizzol

Description

@caio-pizzol

Summary

Support the w:contextualSpacing paragraph property, which suppresses space before/after when consecutive paragraphs share the same style.

Problem

When a list uses w:contextualSpacing, the paragraph spacing between same-style items should collapse. SuperDoc currently ignores this setting and always renders the full spacing.

Repro

  1. Open attached docx in SuperDoc.
  2. List items that should have collapsed spacing still show gaps.

Expected

Consecutive list items with the same style and w:contextualSpacing enabled have their inter-paragraph spacing suppressed, matching Word's behavior.

Notes

The property is w:pPr/w:contextualSpacing. When set to true (or present without a value), space-before and space-after are suppressed between consecutive paragraphs of the same style. See OOXML spec §17.3.1.9.

Attachments

image.png

image.png

Problem bullets.docx


Want to work on this? Check the Contributing Guide to get started. Comment on this issue to let us know you're picking it up.

Ref: SD-1733

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions