-
Notifications
You must be signed in to change notification settings - Fork 658
docs write --pageless: also widen pageSize.width (or add --page-width flag) #629
Copy link
Copy link
Closed
Labels
P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.Low-risk cleanup, docs, polish, ergonomics, or speculative feature.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Description
Metadata
Metadata
Assignees
Labels
P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.Low-risk cleanup, docs, polish, ergonomics, or speculative feature.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Priority
None yet
Problem
gog docs write --replace --markdown --pagelessflipsdocumentFormat.documentMode = PAGELESScorrectly (thank you for #593) — but leavesdocumentStyle.pageSize.widthat the default 612pt (US Letter). In pageless mode, content (especially tables) still respectspageSize.widthas the content width, so tables render narrow on a wide screen.Repro (v0.18.0)
Effective content width = 612 − 72 − 72 = 468pt (≈6.5″) even though the doc is pageless.
Proposed fix
Either:
--pagelessis set — e.g. 1080pt × 792pt with 36pt L/R margins. Matches what Google Docs UI does when a user creates a fresh pageless doc.--page-width=<PT>and--margin-lr=<PT>flags ondocs writeanddocs page-layout— explicit control. See companion issue for margins.Workaround today
Follow
--pagelesswith a Docs APIupdateDocumentStylebatchUpdate to widenpageSize.width.v0.18.0 verified
gog docs write --replace --markdown --pagelessdoes not widen.gog docs page-layout --layout=pagelessdoes not widen either.