]> granicus.if.org Git - graphviz/commitdiff
Fix unterminated <EM> in shapes.html; note that node whose name is an html string
authorEmden R. Gansner <erg@alum.mit.edu>
Thu, 18 Sep 2014 21:47:35 +0000 (17:47 -0400)
committerEmden R. Gansner <erg@alum.mit.edu>
Thu, 18 Sep 2014 21:47:35 +0000 (17:47 -0400)
and a default label will not get the label interpreted as an html-like label.

doc/info/attrs.html
doc/info/shapes.html
doc/infosrc/attrs

index 08d4f4e072f4f3cb8a5e27c3cfe6ec2c54e4e942..faadeccb387705c10094697725397cb09bc60cbc 100644 (file)
@@ -1079,6 +1079,13 @@ of the layout programs.
   If a node's <A HREF=#d:shape>shape</A> is record, then the label can
   have a <A HREF=shapes.html#record>special format</A>
   which describes the record layout.
+  <P>
+  Note that a node's default label is "&#92;N", so the node's name or ID becomes
+  its label. Technically, a node's name can be an HTML string but this will not
+  mean that the node's label will be interpreted as an <a href="shapes.html#html">HTML-like label</a>. This is
+  because the node's actual label is an ordinary string, which will be replaced 
+  by the raw bytes stored in the node's name.
+  To get an HTML-like label, the label attribute value itself must be an HTML string.
 
 <DT><A NAME=d:labelURL HREF=#a:labelURL><STRONG>labelURL</STRONG></A>
 <DD>  If <B>labelURL</B> is defined, this is the link used for the label
index a1725077a6d8aabc6a7e29dc2c1c1fb44d432f70..05e95616672e8ebd76f1666e8f5c039a8746f8a1 100644 (file)
@@ -454,14 +454,12 @@ the markup for strike-through (<TT>&lt;S&gt;</TT>) requires versions later than
 In addition, all of these markups are
 currently only available via the cairo and svg renderers.
 The horizontal and vertical rules </EM>(<TT>&lt;HR&gt;</TT> and <TT>&lt;VR&gt;</TT>)
-<EM>are only available in versions
-later than 8 July 2011.
-</EM>
+<EM>are only available in versions later than 8 July 2011.</EM>
 <P>
-<B>NOTE:</B><EM>For releases later than 9 September 2014, one can use <TT>shape=plain</TT> so that the size
+<B>NOTE:</B><EM>For releases later than 9 September 2014, one can use </EM><TT>shape=plain</TT> <EM>so that the size
 of the node is totally determined by the label. Otherwise, the node's margin, width and height values may cause the
-node to be larger, so that edges are clipped away from the label. In effect, <TT>shape=plain</TT> is shorthand
-for <TT>shape=none width=0 height=0 margin=0</TT>.
+node to be larger, so that edges are clipped away from the label. In effect, </EM><TT>shape=plain</TT> <EM>is shorthand
+for </EM> <TT>shape=none width=0 height=0 margin=0</TT>.
 <P>
 If the value of a label attribute
 (<A HREF=attrs.html#d:label><TT>label</TT></A> for nodes, edges, clusters, and
index d4b9ea790bc45ff60edb547bc845674ff13dd054..e534a183a6503d3035874ab486ee7f17d1a278a3 100644 (file)
@@ -561,6 +561,13 @@ Text label attached to objects.
 If a node's <A HREF=#d:shape>shape</A> is record, then the label can
 have a <A HREF=shapes.html#record>special format</A>
 which describes the record layout.
+<P>
+Note that a node's default label is "\&#92;N", so the node's name or ID becomes
+its label. Technically, a node's name can be an HTML string but this will not
+mean that the node's label will be interpreted as an <a href="shapes.html#html">HTML-like label</a>. This is
+because the node's actual label is an ordinary string, which will be replaced 
+by the raw bytes stored in the node's name.
+To get an HTML-like label, the label attribute value itself must be an HTML string.
 :labelURL:E:escString:"";  map,svg
 If <B>labelURL</B> is defined, this is the link used for the label
 of an edge. This value overrides any <A HREF=#d:URL>URL</A>