mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 02:21:53 +00:00
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:
+2
-1
@@ -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"}}}
|
||||
|
||||
Reference in New Issue
Block a user