Skip to content

fix(overlay): drop empty lines after block scalars via ApiDOM 6.1.2 - #200

Merged
char0n merged 1 commit into
mainfrom
fix/199-overlay-block-scalar-empty-lines
Oct 29, 2026
Merged

char0n merged 1 commit into
mainfrom
fix/199-overlay-block-scalar-empty-lines

Conversation

@char0n

@char0n char0n commented Oct 29, 2026

Copy link
Copy Markdown
Member

Upgrade @speclynx/apidom-* to 6.1.2. Its YAML serializer no longer writes the empty lines that follow a clip or strip block scalar in an overlay into the target (speclynx/apidom#681). Values were always correct; only the written text had extra blank lines. Keep (|+) blocks keep their trailing empty lines, as those are part of the value.

Also upgrade @speclynx/api-languageservice to 3.0.0. Its breaking change (validation providers no longer take a schema) needs no changes here, since the CLI constructs every provider without arguments.

package-lock.json is regenerated from scratch. An incremental install left apidom 6.1.0 (via api-languageservice) hoisted next to nested 6.1.2 copies, so element type checks failed across copies.

Adds regression tests for clip, strip and keep blocks followed by empty lines and a comment between actions, with LF and CRLF line breaks. The reporter's attached files now apply with no extra blank lines.

Refs speclynx/apidom#681
Closes #199

Upgrade @speclynx/apidom-* to 6.1.2, whose YAML serializer no longer
writes the empty lines that follow a clip or strip block scalar in an
overlay into the target. Also upgrade @speclynx/api-languageservice
to 3.0.0.

Refs speclynx/apidom#681
Closes #199
@char0n
char0n merged commit e8ceb21 into main Oct 29, 2026
9 of 10 checks passed
@char0n
char0n deleted the fix/199-overlay-block-scalar-empty-lines branch October 29, 2026 20:19
char0n pushed a commit that referenced this pull request Oct 29, 2026
## [1.5.3](v1.5.2...v1.5.3) (2026-10-29)

### Bug Fixes

* **overlay:** drop empty lines after block scalars via ApiDOM 6.1.2 ([#200](#200)) ([e8ceb21](e8ceb21)), closes [speclynx/apidom#681](speclynx/apidom#681) [#199](#199)
@char0n

char0n commented Oct 29, 2026

Copy link
Copy Markdown
Member Author

🎉 This PR is included in version 1.5.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Overlay: extra new-lines following text blocks

1 participant