Skip to content

Commit

Permalink
Update pageMarginsPreset docs on init logic
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiecorrigall committed Feb 13, 2019
1 parent dfe932e commit 8914a97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2628,8 +2628,8 @@ Set the page margin (or override the preset) given an attribute name and a value
#### sheet.pageMarginsPreset() ⇒ <code>string</code>
Page margins preset is a set of page margins associated with a name.
The page margin preset acts as a fallback when not explicitly defined by `Sheet.pageMargins`.
If a sheet already contains page margins, they are defined as the "template" preset.
Otherwise the preset is undefined and will not be including in the output of `Sheet.toXmls`.
If a sheet already contains page margins, it attempts to auto-detect, otherwise they are defined as the template preset.
If no page margins exist, then the preset is undefined and will not be included in the output of `Sheet.toXmls`.
Available presets include: normal, wide, narrow, template.

Get the page margins preset name. The registered name of a predefined set of attributes.
Expand Down
4 changes: 2 additions & 2 deletions lib/Sheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -1007,8 +1007,8 @@ class Sheet {
/**
* Page margins preset is a set of page margins associated with a name.
* The page margin preset acts as a fallback when not explicitly defined by `Sheet.pageMargins`.
* If a sheet already contains page margins, they are defined as the "template" preset.
* Otherwise the preset is undefined and will not be including in the output of `Sheet.toXmls`.
* If a sheet already contains page margins, it attempts to auto-detect, otherwise they are defined as the template preset.
* If no page margins exist, then the preset is undefined and will not be included in the output of `Sheet.toXmls`.
* Available presets include: normal, wide, narrow, template.
*
* Get the page margins preset name. The registered name of a predefined set of attributes.
Expand Down

0 comments on commit 8914a97

Please sign in to comment.