mirror of
https://github.com/typst/typst
synced 2025-08-07 19:57:54 +08:00
fix: only generate conflicting text decoration style error in PDF/UA-1
This commit is contained in:
parent
e5fcc3bf5e
commit
3bcfe54002
@ -223,7 +223,7 @@ impl TextAttrs {
|
|||||||
let deco = TextDeco { kind, stroke };
|
let deco = TextDeco { kind, stroke };
|
||||||
|
|
||||||
// TODO: can overlapping tags break this?
|
// TODO: can overlapping tags break this?
|
||||||
if self.decos.iter().any(|(_, d)| d.kind != deco.kind) {
|
if options.is_pdf_ua() && self.decos.iter().any(|(_, d)| d.kind != deco.kind) {
|
||||||
let validator = options.standards.config.validator();
|
let validator = options.standards.config.validator();
|
||||||
let validator = validator.as_str();
|
let validator = validator.as_str();
|
||||||
bail!(
|
bail!(
|
||||||
|
@ -24,3 +24,9 @@ blue underlined text
|
|||||||
#underline[underlined]\
|
#underline[underlined]\
|
||||||
#overline[overlined]\
|
#overline[overlined]\
|
||||||
#strike[striked]\
|
#strike[striked]\
|
||||||
|
|
||||||
|
--- deco-tags-multiple-styles pdftags ---
|
||||||
|
#show: underline
|
||||||
|
// Error: 2-16 PDF/UA1 error: cannot combine underline, overline, and or strike
|
||||||
|
#show: overline
|
||||||
|
text with a bunch of lines
|
||||||
|
Loading…
x
Reference in New Issue
Block a user