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

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

Aberta
#2,978 1 comentário 0 reações 0 responsáveis Ver no GitHub
api: docs needs more info priority: p4 type: feature request
Linguagem predominante
Java
Estrelas
725
Forks
394
Merge médio
42min
PRs com merge (30d)
257

Descrição

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.

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Comece reproduzindo o problema com Google Docs API v1-rev20191010-1.30.3 usando uma célula de tabela que contenha várias linhas e, em seguida, compare os elementos de parágrafo retornados com o JSON bruto do documento. O trabalho estará concluído quando o texto e os índices de cada linha estiverem disponíveis por meio da API, para que seja possível aplicar estilos durante a iteração dos elementos.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
java
Domínio
api
Tipo de issue
Bug
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
30/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.