Skip to content

Commit a121e6b

Browse files
committed
Fix issue with incorrect loading of paragraph styles from style definition and add changelog for MIG-438 Improve text and paragraph style mapping
1 parent 269fc40 commit a121e6b

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
88

99
### Added
1010

11+
- Paragraph and Text style references can also work with Interactive display names
12+
1113
### Changed
1214

15+
- Paragraph and Text styles now can contain both definition and reference. Ref takes precedence over definition.
16+
- Size retains unit with which it was created. This also solves some floating-point precision issues.
17+
1318
### Fixed
1419

1520
## [17.0.17] - 2026-03-10

migration-library/src/main/kotlin/com/quadient/migration/service/inspirebuilder/InteractiveDocumentObjectBuilder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ class InteractiveDocumentObjectBuilder(
291291
val layoutXmlTree = xmlMapper.readTree(xml.trimIndent())["Layout"]["Layout"]
292292
return StyleDefinitionData(
293293
parseStyleDisplayNamesToNames(layoutXmlTree, "TextStyle"),
294-
parseStyleDisplayNamesToNames(layoutXmlTree, "ParagraphStyle"),
294+
parseStyleDisplayNamesToNames(layoutXmlTree, "ParaStyle"),
295295
)
296296
}
297297

migration-library/src/test/kotlin/com/quadient/migration/service/inspirebuilder/InteractiveDocumentObjectBuilderTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,11 @@ class InteractiveDocumentObjectBuilderTest {
199199
<Workflow>
200200
<Layout>
201201
<Layout>
202-
<ParagraphStyle>
202+
<ParaStyle>
203203
<Id>10</Id>
204204
<Name>heading_internal</Name>
205205
<CustomProperty>{&quot;DisplayName&quot;:&quot;Heading Display&quot;}</CustomProperty>
206-
</ParagraphStyle>
206+
</ParaStyle>
207207
<TextStyle>
208208
<Id>20</Id>
209209
<Name>body_internal</Name>

0 commit comments

Comments
 (0)