google-api-java-client-services icon indicating copy to clipboard operation
google-api-java-client-services copied to clipboard

Google Docs Api does not work correctly for Table Cell data with multiple lines

Open keithdsouza opened this issue 5 years ago • 1 comments

In Google Docs API version v1-rev20191010-1.30.3, there is an issue with accessing data from tables. The issue happens when the cells have new lines in them. For example

A B

The API currently only returns a single paragraph element in the cell with text A and ignores the second line in the cell. However, the data is still available in the raw json for the document.

The above causes problem because I need to style each line in the cell, but because of this issue it's only applying styles to the first line when I iterate the elements.

As a workaround, I am using the raw JSON to get the indexes for the texts and then applying the styles, but this should be made available through the API too.

keithdsouza avatar Oct 23 '19 15:10 keithdsouza

Hey @keithdsouza thanks for the report. Could you please be more specific about what apis you are using within Google Docs and show a small example of what you got vs what you expected to see?

codyoss avatar Oct 31 '19 15:10 codyoss