Skip to content

docs write / page-layout: --margin-left, --margin-right, --margin-top, --margin-bottom #630

@sebsnyk

Description

@sebsnyk

Problem

No way to set page margins via the CLI today. After gog docs write --replace --markdown --pageless, margins stay at the default 72pt (1″) all around — too generous for pageless docs with wide tables.

Repro (v0.18.0)

gog docs write --help | grep -iE "margin|width"
# (no margin / width flags)

gog docs page-layout --help | grep -iE "margin"
# (no margin flags)

Proposed fix

Add --margin-left=<PT>, --margin-right=<PT>, --margin-top=<PT>, --margin-bottom=<PT> to docs write and docs page-layout. Accept either points or inches (--margin-left=0.5in).

Why it matters

Companion to #629 (pageSize widening). Both are needed for pageless docs with wide tables. Today users post-process via Docs API updateDocumentStyle — same call surface a CLI flag would wrap.

v0.18.0 verified

  • No margin flags on docs write, docs update, or docs page-layout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal priority bug or improvement with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions