Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#2,978 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
api

Research direction

Start by reproducing the issue with Google Docs API v1-rev20191010-1.30.3 using a table cell containing multiple lines, then compare the returned paragraph elements with the document's raw JSON. Done means each line's text and indexes are available through the API so styling can be applied during element iteration.

Written by the indexing model from the issue text.

Description

api: docs needs more info priority: p4 type: feature request

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.

Dominant language
Java
Stars
725
Forks
394
Avg merge
45m
Merged PRs (30d)
240

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

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

All issues in googleapis/google-api-java-client-services

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.