From 8914a9723ba91694c7c1146463fda21af4349a1e Mon Sep 17 00:00:00 2001 From: Eddie Corrigall Date: Tue, 12 Feb 2019 19:34:49 -0500 Subject: [PATCH] Update pageMarginsPreset docs on init logic --- README.md | 4 ++-- lib/Sheet.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 96b01db4..56cef249 100644 --- a/README.md +++ b/README.md @@ -2628,8 +2628,8 @@ Set the page margin (or override the preset) given an attribute name and a value #### sheet.pageMarginsPreset() ⇒ string 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. diff --git a/lib/Sheet.js b/lib/Sheet.js index 99a97981..80e6c812 100644 --- a/lib/Sheet.js +++ b/lib/Sheet.js @@ -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.