googleapis / googleapis/google-api-java-client-services

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

未关闭
#2,978 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
api: docs needs more info priority: p4 type: feature request
主要语言
Java
星标
725
派生
394
平均合并
42 分钟
30 天内合并 PR
257

描述

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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。