table font props override
This commit is contained in:
@@ -64,10 +64,13 @@ internal static class ReplaceToTableExt
|
||||
continue;
|
||||
|
||||
// Извлекаем свойства шрифта для передачи в TableBuilder
|
||||
baseFont ??= ExtractFontPropsFromParagraph(paragraph, oldValue);
|
||||
var fontProps = ExtractFontPropsFromParagraph(paragraph, oldValue);
|
||||
|
||||
if (fontProps is { } props)
|
||||
props.Override(baseFont);
|
||||
|
||||
// Заменяем параграф на таблицу
|
||||
ReplaceWithTableBuilder(paragraph, buildTable, baseFont);
|
||||
ReplaceWithTableBuilder(paragraph, buildTable, fontProps);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user