Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add linebreak to task gantt #5140

Open
tiarasilva opened this issue Dec 12, 2023 · 1 comment
Open

Add linebreak to task gantt #5140

tiarasilva opened this issue Dec 12, 2023 · 1 comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@tiarasilva
Copy link

Description

In the current version of Mermaid's Gantt charts, it appears that line breaks (e.g., using
tags or newline characters such as \n) within task descriptions do not produce the intended effect of creating a new line. While these HTML tags and escape sequences work as expected in section titles, they seem to be ineffectual within the task descriptions.

Steps to reproduce

  1. Create a Gantt chart
  2. Insert a line break on task description
  3. Render the Gantt

Screenshots

Captura de pantalla 2023-12-12 a la(s) 18 21 06

Code Sample

gantt
    title Sample Gantt Chart
    dateFormat YYYY-MM-DD

    section Sample Section
    Task with line break<br>Second line: done, 2023-12-04, 2w

Setup

  • Mermaid version:
  • Browser and Version: [Chrome, Edge, Firefox]

Suggested Solutions

No response

Additional Context

No response

@tiarasilva tiarasilva added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Dec 12, 2023
@phil-flip
Copy link

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

2 participants