VectorCraft: An open-source, vector art tool written by scratch in pure Rust
Type: the comments on new type's burasagari default state the default only
imachusa366e4ff79cd
diff --git a/crates/engine/src/cmd/create.rs b/crates/engine/src/cmd/create.rsindex 53c872354..89f9e12c7 100644--- a/crates/engine/src/cmd/create.rs+++ b/crates/engine/src/cmd/create.rs@@ -447,8 +447,7 @@ fn text_create(s: &mut Session, p: &Value) -> Result<Value> {/// The paragraph attributes new type gets (the Type tools, `text.create`): aligned to the start of/// each paragraph's direction (left, right for Hebrew and Arabic), Japanese punctuation composed-/// with Line-end Punctuation Half Width and Standard burasagari (as in Illustrator). Imported text-/// keeps its own.+/// with Line-end Punctuation Half Width and Standard burasagari. Imported text keeps its own.pub(crate) fn new_type_para() -> vectorcraft_doc::ParaStyle {vectorcraft_doc::ParaStyle {justify: vectorcraft_doc::Justify::Auto,diff --git a/crates/engine/src/cmd/typecmd.rs b/crates/engine/src/cmd/typecmd.rsindex 6062781ad..51dca2c3b 100644--- a/crates/engine/src/cmd/typecmd.rs+++ b/crates/engine/src/cmd/typecmd.rs@@ -629,7 +629,7 @@ mod area_tests {NodeKind::Text(t) => t.para.clone(),_ => panic!("text"),};- // New type: Standard, as in Illustrator.+ // New type: Standard.assert_eq!(para(&s).burasagari, Burasagari::Standard);s.execute("select.set", &json!({"ids": [id]})).unwrap();assert!(s.execute("text.setFormat", &json!({"burasagari": "strong"})).is_err());