Type: a paragraph style refuses a custom Kinsoku set it would drop

A custom Kinsoku set goes with Hard and has a name a custom set can
have. paraStyle.new and paraStyle.setAttrs given a custom set together
with `kinsoku` None or Soft, or a set with a blank or built-in name,
reported success while the style kept no custom set. They now fail
with an error and leave the styles unchanged.
This commit is contained in:
dotCooCoo
2026-11-14 14:57:34 -08:00
parent bfdffe55a3
commit dc89f8d953
3 changed files with 41 additions and 1 deletions
+2 -1
View File
@@ -8685,7 +8685,8 @@ JLREQ's level 3 line-breaking rules do (https://www.w3.org/TR/jlreq/#addendum_a3
**None** applies no kinsoku. `hard` isn't saved. The name of a custom set of the document (`type.kinsokuSets.list`, any
case) gives each paragraph a copy of that set, saved with the paragraph (`kinsoku_set` in `para`) beside Hard, so an
older build reads the paragraph as Hard; a name the document has no set of fails the call and changes nothing.
Paragraph styles carry the set. One undo step.
Paragraph styles carry the set; `paraStyle.new` and `paraStyle.setAttrs` given `kinsoku_set` with `kinsoku` None or Soft,
or with a blank or built-in set name, fail and change nothing. One undo step.
```json
{"name":"run_command","arguments":{"command":"text.setFormat","params":{"kinsoku":"soft"}}}