Skip to content
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

Unsupported child: INLINE_DRAWING #22

Open
webmaster-collabforge opened this issue Feb 15, 2014 · 4 comments
Open

Unsupported child: INLINE_DRAWING #22

webmaster-collabforge opened this issue Feb 15, 2014 · 4 comments

Comments

@webmaster-collabforge
Copy link

I'm getting the following error while parsing a Google Doc.

Paragraph 438 of type PARAGRAPH has an unsupported child: INLINE_DRAWING index=438 (line 155, file "Code")

@agouge
Copy link

agouge commented Aug 18, 2014

I'm getting a similar error:

Paragraph 83 of type LIST_ITEM has an unsupported child: EQUATION M index=83 (line 155, file "Code")

@agouge
Copy link

agouge commented Aug 18, 2014

Instead of throwing this exception, you can replace this else block with something like

    } else {
      // throw "Paragraph "+index+" of type "+element.getType()+" has an unsupported child: "
      // +t+" "+(element.getChild(i)["getText"] ? element.getChild(i).getText():'')+" index="+index;
      textElements.push(' CONVERSION ERROR ');
    }

This will allow the conversion to go through, replacing nonconvertible elements by " CONVERSION ERROR " in the markdown document.

@maciejmyslinski
Copy link

This is really annoying error.

@david-a-wheeler
Copy link

After line 154 I added:

} else if (t === DocumentApp.ElementType.INLINE_DRAWING) {
      textElements.push(' (NOTE: INLINE_DRAWING NOT SUPPORTED)');

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

No branches or pull requests

4 participants