summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/layout
diff options
context:
space:
mode:
authorbluebear94 <uruwi@protonmail.com>2023-08-23 08:55:43 -0400
committerGitHub <noreply@github.com>2023-08-23 14:55:43 +0200
commit3fcb5ea73cbae20500f4695685df4caf0071d45a (patch)
treef61e85c8a6f8da8810e17de24af07e95dd0694b6 /crates/typst-library/src/layout
parentb59b8bfb352f57d50acd67a048baa8390d37e374 (diff)
Render opening smart quote after another opening quote of a different type (#1559)
Diffstat (limited to 'crates/typst-library/src/layout')
-rw-r--r--crates/typst-library/src/layout/par.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-library/src/layout/par.rs b/crates/typst-library/src/layout/par.rs
index 23579105..d3cd6cbf 100644
--- a/crates/typst-library/src/layout/par.rs
+++ b/crates/typst-library/src/layout/par.rs
@@ -642,7 +642,7 @@ fn collect<'a>(
};
if let Some(last) = full.chars().last() {
- quoter.last(last);
+ quoter.last(last, child.is::<SmartQuoteElem>());
}
spans.push(segment.len(), child.span());