uftrace icon indicating copy to clipboard operation
uftrace copied to clipboard

"<" symbol causes bad output with "uftrace dump --mermaid"

Open Nor-s opened this issue 6 months ago • 2 comments

Describe the bug

"<" symbol causes bad output when using the "flowchart": {"htmlLabels": false} mermaid config option.

To Reproduce

// helloWorld.cpp
#include <iostream>

int main()
{
    std::cout<<"Hello World";
}
$ g++ -pg helloWorld.cpp
$ uftrace record a.out
$ uftrace dump --mermaid > ./tmp.html

Screenshot

tmp.html
image

Proposal

As a temporary measure, setting "htmlLabels": true

  • mermaid.js issues: https://github.com/mermaid-js/mermaid/issues/4390
result: "htmlLabels:true"
image

Nor-s avatar Jul 31 '24 15:07 Nor-s