Skip to content

cupertino-files / applyParagraphProperties

Function: applyParagraphProperties()

applyParagraphProperties(m, f): void

Defined in: src/tss/stylesheet.ts:696

Apply paragraph formatting onto an existing property bag (see above).

A left indent is written as the pair Apple writes. Of the 8647 corpus paragraph styles that set left_indent, 8645 set first_line_indent beside it, and a style carrying the left indent alone was observed not to indent in Pages at all. So an unaccompanied left indent gains a matching first line — a block indent, which is what indenting a paragraph means — while a bag that already states its own first line keeps it, hanging indents included.

Parameters

m

RawMessage

f

ParagraphFormatting

Returns

void

MIT licensed. Independently made — not by Apple in California. Not affiliated with or endorsed by Apple Inc.