mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 17:56:50 -06:00
charStyle.new and paraStyle.new kept the name they were given as it was, while charStyle.rename and paraStyle.rename trim the white space around the new name. So a script could make a style " Body" beside "Body", and a blank name was refused with the message for a name that is taken. New Character Style and New Paragraph Style now trim the name as rename does, compare the trimmed name with the styles there are, and refuse a name that is then empty with rename's message. Duplicate names the copy from the trimmed name. symbol.new and symbol.duplicate trim the name as symbol.options trims newName, and a blank newName gives "<name> copy" instead of a symbol named with the blank. library.use adds a library's text style under its trimmed name, so a library file whose style is named with spaces around it still applies. Docs: docs/mcp.md, docs/target-app-parity.md.