Integration: format

This commit is contained in:
aiongg
2026-10-13 01:19:52 +00:00
parent f2fc69307b
commit 9a07d8a095
2 changed files with 2 additions and 2 deletions
+2 -1
View File
@@ -794,7 +794,8 @@ fn create_char(s: &mut Session, p: &Value) -> Result<Value> {
let story = st.doc.text_story(target.story, target.cell).ok_or(designcraft_doc::DocError::NoStory(target.story))?;
// Match paragraph fromSelection's first-character/caret policy, but keep paragraph
// attributes inherited instead of freezing the fully resolved character properties.
let mut format = if target.range.is_empty() { story.char_format_at(target.range.start) } else { story.format_after(target.range.start) }.clone();
let mut format =
if target.range.is_empty() { story.char_format_at(target.range.start) } else { story.format_after(target.range.start) }.clone();
// A bare caret: what typing there would get, as `type.selectionAttrs` reports.
if target.range.is_empty() {
super::text::with_typing_format(s, &mut format);
-1
View File
@@ -531,7 +531,6 @@ fn cell_and_table_style_strokes_take_type_and_gap_colour_with_validation() {
}
}
#[test]
fn split_selected_row_or_column_splits_both_cells() {
for horizontal in [true, false] {