-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lists items should not be indented #8
Comments
Sorry for the late reply, hadn't seen this! I've seen this behaviour, and basically it's a quirk of Google Docs I can't figure out - if you indent at some point and then de-indent it'll 'remember'. The indent level is recorded as changed, becoming non-whatever the initialisation value is. I always make documents from scratch in plain-text format (e.g. without pasting in website-formatted bits), and avoid it, but really this is just a best-available convenience tool, and it's always best to have a check over (find and replace on the output as necessary). The relevant part of the text processing is done here if you really want to have a go at seeing if the behaviour's fixable, it's a flaw in Google Docs' inconsistent recording of indentation though as far as I can see. If you're not using indent to mean blockquote then feel free to set the variable on If I remember rightly, the nesting level starts at null, indentation and then reindentation increases it to say "2" and then down to "0", so it's the comparison between null and 0 that's the problem. Apologies that I can't be more specific, it was a while ago I stepped through the code, but the debugger on Apps Script script editor is very good, and shows all the relevant values if you add a breakpoint at the 'getNestingLevel' section. I don't suppose you could sharing a reproducible example of a doc that causes this? That might help diagnose it. |
Same issue here. Basic bullet points with indent not used. Have switched bullets on off, and made sure indent is as minimal as possible. Your suggestion to change indent_prefix works for the docs I am doing as we are not using indent as quotes. If you still need an example doc I can share it. |
This turns my list items into
> <sub>* a list item
. I can't dedent my lists any further in Google Docs. I would expect list items to be just* a list item
.The text was updated successfully, but these errors were encountered: