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")