question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sequencediagram text with <br /> BR tag with space fails

See original GitHub issue

This works

working example

sequenceDiagram
    participant Joe
    participant Alice
    Joe->>Alice: Foo
    Note over Alice: Bar<br/>Baz
    Note over Joe,Alice: That note above should have had a carriage return between Bar and Baz

but this, with a space between the r and / fails by rendering the <br /> as text not as a line break. One tricky thing is that if you look at it in the interactive view, and then type something on the line with the <br /> it displays correctly, but the view link continues to display incorrectly.

non working example

sequenceDiagram
    participant Joe
    participant Alice
    Joe->>Alice: Foo
    Note over Alice: Bar<br />Baz
    Note over Joe,Alice: That note above should have had a carriage return between Bar and Baz

This may relate to some challenges people had in #384

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
GDFabercommented, Dec 14, 2019

This seems to be similar to #1088. Looking at the commit mentioned above, the regex <br\/?> is used to determine the lines. This takes care of <br> and <br/> but does not find <br />.

If noone else is already working on this issue, I can take a look at it.

1reaction
GDFabercommented, Dec 19, 2019

PR coming up for the weekend I suppose.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Instructions and Examples - SequenceDiagram.org
Text comments can be added in the diagram source on separate lines prefixed ... Failure Messages are created by using x to denot...
Read more >
uml - PlantUML: How to Insert a Newline or <br> in Between ...
I use ||| . This generates a vertical space, similar to a <br> in HTML.
Read more >
mermaid - Generation of diagrams and flowcharts from text in ...
A Sequence diagram is an interaction diagram that shows how processes operate with one another and in what order. Mermaid can render sequence...
Read more >
Issue while rendering text with space after <BR> — OpenText
Issue while rendering text with space after <BR> ... are facing one issue while rendering text containing space after <BR > tag.
Read more >
Mermaid Cheat Sheet @ https://jojozhuang.github.io
A Sequence diagram is an interaction diagram that shows how processes operate ... od3>Really long text with linebreak<br>in an Odd shape] %% Comments...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found