-
Notifications
You must be signed in to change notification settings - Fork 621
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
Was working/now error on line 87 getNumChildren #58
Comments
@mangini - hi - any chance you can help me with this, please? I have a large document I need to convert and this is hanging me up. TIA |
Hi Nancy -- I won't speak for Renato, but I've been putting my side-project energies into a Docs add-on that extends the work Renato started. See https://github.com/evbacher/gd2md-html/wiki for information about gd2md-html. We've been using a version of this for a few years, and I released an external version a few months ago. |
@evbacher - thanks so much. I'll check it out! |
Anyone else following along can have it skip unsupported stuff (which sometimes might not be noticeable at all) by changing line 87 to: |
Better yet: if (!element.getNumChildren) {
// just in case we would cut something whose absence wouldn't be obvious...
return {"text": "<!-- There was something here that couldn't be converted. It may be nothing, but you should compare this spot with the original to make sure nothing is missing. Either way, delete this comment afterward. -->"};
}
if (element.getNumChildren()==0) {
return null;
} |
Out of interest, I used the above substitution (thanks so much @codingthat), and the warning comment printed where a column break had been inserted in the google doc to make subsequent pages landscape. |
See error image
The script worked great for a bunch of docs I converted last month, now I'm getting this error message and don't know how to fix.
The text was updated successfully, but these errors were encountered: