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 件 担当者 0 名 GitHub で見る
api: docs needs more info priority: p4 type: feature request
主要言語
Java
スター
725
フォーク
394
平均マージ
42分
マージ済み PR(30日)
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 を短くまとめたダイジェスト。