]> granicus.if.org Git - graphviz/commitdiff
fix comment used in PIC files by plugin back end
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 15 Mar 2021 00:33:03 +0000 (17:33 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 21 Mar 2021 03:52:35 +0000 (20:52 -0700)
The PIC plugin seems to have copied some details from the core PIC
implementation (lib/common/picgen.c) without noticing that the core
implementation juggles its comment format to emit PIC comments on pages and only
use TROFF comments at the top level. Related to #131.

plugin/core/gvrender_core_pic.c

index 2e1b31ab74b3d201cc74b18b2b214843929b420c..9bf5628b43502d5986ec4b046a9c6042d0446ec1 100644 (file)
@@ -56,7 +56,7 @@ static double Fontscale;
   The first approach is used here.
 */
 
-static const char *EscComment = ".\\\" ";       /* troff comment */
+static const char EscComment[] = "# ";       /* PIC comment */
 static const char picgen_msghdr[] = "dot pic plugin: ";
 
 static void unsupported(char *s)