From 9f57e1fc0e0d0a6d73d198766f748726fb0302db Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Fri, 13 Nov 2026 05:35:10 -0500 Subject: [PATCH] Expose typed IDML paragraph breaks --- crates/idml/src/model/story.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/idml/src/model/story.rs b/crates/idml/src/model/story.rs index ad76381f0..1a43b2e48 100644 --- a/crates/idml/src/model/story.rs +++ b/crates/idml/src/model/story.rs @@ -324,6 +324,11 @@ fn text(nodes: &[TextNode], ace: &dyn Fn(Ace) -> Option) -> String { } impl Range { + /// `ParagraphBreakType`, except `Anywhere` which means no forced break. + pub fn paragraph_break_type(&self) -> Option<&str> { + self.values.get("ParagraphBreakType").filter(|kind| *kind != "Anywhere") + } + /// `AppliedParagraphStyle` of a paragraph range. pub fn paragraph_style(&self) -> Option<&str> { self.values.get("AppliedParagraphStyle")