@speclynx/apidom-reference 6.1.1 → 6.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [6.1.2](https://github.com/speclynx/apidom/compare/v6.1.1...v6.1.2) (2026-10-29)
7
+
8
+ **Note:** Version bump only for package @speclynx/apidom-reference
9
+
6
10
  ## [6.1.1](https://github.com/speclynx/apidom/compare/v6.1.0...v6.1.1) (2026-10-29)
7
11
 
8
12
  ### Bug Fixes
@@ -56488,7 +56488,10 @@ const toYAMLNode = (element, context) => {
56488
56488
  }
56489
56489
  }
56490
56490
  if ((style.scalarStyle === 'Literal' || style.scalarStyle === 'Folded') && typeof style.rawContent === 'string' && typeof scalar.value === 'string') {
56491
- const text = style.rawContent.replace(/\r\n/g, '\n').replace(/\n$/, '');
56491
+ const raw = style.rawContent.replace(/\r\n/g, '\n');
56492
+ // the empty lines after a clip or strip block aren't part of its value, but separate it from
56493
+ // what follows in its source, so they're dropped; a keep block's are part of its value
56494
+ const text = raw.replace(/^[|>][1-9]?\+/.test(raw) ? /\n$/ : /\n+$/, '');
56492
56495
  scalar.value = new RawBlockScalar(scalar.value, text);
56493
56496
  }
56494
56497
  if (style.styleGroup === 'Flow' && typeof style.rawContent === 'string' && typeof scalar.value === 'string' && scalar.value !== '') {