-
Notifications
You must be signed in to change notification settings - Fork 592
docs write --replace --markdown --tab: paragraph blank lines collapse into soft line breaks #644
Copy link
Copy link
Open
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.impact:data-lossThis issue is about lost, corrupted, or silently dropped user/session/config data.This issue is about lost, corrupted, or silently dropped user/session/config data.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Metadata
Metadata
Assignees
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.impact:data-lossThis issue is about lost, corrupted, or silently dropped user/session/config data.This issue is about lost, corrupted, or silently dropped user/session/config data.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary
When using
gog docs write --replace --markdown --tab=<title>to rewrite a Google Doc tab from a markdown file, paragraph-level blank lines in the source are collapsed into soft line breaks (two-space hard-break form) inside a single paragraph, instead of producing separate paragraph elements. The same source markdown rendered throughgog docs write --replace --markdown --pageless(whole-doc, no--tab) does preserve paragraph breaks correctly — so it appears to be a--tabpath regression.Verified on gogcli v0.19.0 (Homebrew).
Repro
/tmp/in.md:Expected (paragraph breaks preserved)
Actual (paragraphs collapsed into soft line breaks)
The trailing two-space line-break in the round-trip export indicates the converter wrote these as a single Docs paragraph element with line breaks, not three separate paragraphs.
Comparison with whole-doc path
The same source markdown rendered via
gog docs write --replace --markdown --pageless(no--tabflag) produces three separate paragraphs as expected. The behavioural delta is specific to the--tabpath.Impact
\n\n\n) does not help — it appears the converter normalises blank line count to a single break.Workaround
Convert paragraphs to bullet list items. Bullet items render with proper list-item spacing in Google Docs, sidestepping the paragraph-flattening behaviour. Not a fix — bullets are the wrong markup for narrative status updates.
Notes
+and&escape as\+and\&in the round-trip, but that is cosmetic in the markdown export and renders correctly in the Doc UI.###) are preserved correctly; the issue is purely paragraph-to-paragraph inside a section.