Skip to content

Don't crash on non-px margin-left in google_doc mode - #446

Open
santhreal wants to merge 1 commit into
Alir3z4:masterfrom
santhreal:upstream/google-doc-non-px-margin-left
Open

Don't crash on non-px margin-left in google_doc mode#446
santhreal wants to merge 1 commit into
Alir3z4:masterfrom
santhreal:upstream/google-doc-non-px-margin-left

Conversation

@santhreal

Copy link
Copy Markdown

google_nest_count assumes margin-left is NNpx and int()-parses after stripping two chars, so values like "5" or "auto" raise ValueError. Parse only px-suffixed values and treat other units as nest depth 0.

google_nest_count assumes margin-left is NNpx. Parse only px-suffixed
values and treat other units as nest depth 0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant