Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Line break with graphviz, HTML

I've created a graphviz table node:

<TR>
    <TD COLSPAN="3" BGCOLOR="lightgrey">LineOne LineTwo</TD>
</TR>

I'd like to have Line1, Line2 in separate lines. I've tried <br>, \n and &nbsp;, without luck - some just appear as is in the rendered image, and some cause errors.

like image 708
Adam Matan Avatar asked Apr 17 '13 18:04

Adam Matan


1 Answers

It's a self-closing tag nitpick:

<TD COLSPAN="3" BGCOLOR="lightgrey">LineOne<br/>LineTwo</TD>
                                              ^
like image 182
Adam Matan Avatar answered Sep 28 '22 01:09

Adam Matan