plotly / plotly/plotly.js

Table text wrap is not working when "<br>" used for line breaks

Open
#3,658 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P3
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
28

Description

Some of texts that I am showing in a table might have line breaks entered at a time a text was created. In order to break that text in a table I am replacing \r or \n characters with
<br>
I do get new lines properly but text auto wrapping is not working anymore. See the provided example:
https://codepen.io/michaelbabyn/pen/VREaKa

Contributor guide

Open the contributing guide

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.

Research direction

Start by reproducing the provided CodePen example and tracing the table text rendering path. Done means table text containing
line breaks still wraps automatically as expected, without breaking the existing line-break behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.