Fix commit 641a5b7a144 for "nbsp" output in SVG files
authorBruce Momjian <[email protected]>
Tue, 26 Nov 2024 18:07:53 +0000 (13:07 -0500)
committerBruce Momjian <[email protected]>
Tue, 26 Nov 2024 18:08:13 +0000 (13:08 -0500)
In commit 641a5b7a144, I removed "nbsp" characters from SVG files, not
realizing the SVG files were generated from GV files and that the "nbsp"
characters were caused by trailing ASCII spaces in GV files.  This
commit restores the "nbsp" SVG characters and adds a GV comment about
how the trailing spaces cause the "nbsp" output.

Reported-by: Peter Eisentraut
Discussion: https://postgr.es/m/2c5dd601-b245-4092-9c27-6d1ad51609df%40eisentraut.org

Back-through: master

doc/src/sgml/images/genetic-algorithm.gv
doc/src/sgml/images/genetic-algorithm.svg

index 80c354c2c8be84e2391e0326ff2246284176ed56..7912e165deac0b7338232d3133391fb65a0bd585 100644 (file)
@@ -36,6 +36,7 @@ digraph {
 
    // edges
    a1 -> a2 -> a3 -> a4;
+   // these trailing spaces output as "nbsp" (UTF8 NO-BREAK SPACE)
    a4 -> a5[xlabel="false   ", fontsize=10];
    a4 -> end[xlabel="true  ",  fontsize=10];
    a5 -> a6 -> a7 -> a8 -> a9;
index 2ce5f1b27125e8bb98e44d1521e7e0a12d3432b8..fb9fdd1ba78081d968b1a1ddbfe8b13a4abaecf7 100644 (file)
@@ -72,7 +72,7 @@
 <title>a4-&gt;end</title>
 <path fill="none" stroke="#000000" d="M259,-312.5834C259,-312.5834 259,-54.659 259,-54.659"/>
 <polygon fill="#000000" stroke="#000000" points="262.5001,-54.659 259,-44.659 255.5001,-54.6591 262.5001,-54.659"/>
-<text text-anchor="middle" x="246" y="-186.6212" font-family="sans-serif" font-size="10.00" fill="#000000">true</text>
+<text text-anchor="middle" x="246" y="-186.6212" font-family="sans-serif" font-size="10.00" fill="#000000">true  </text>
 </g>
 <!-- a5 -->
 <g id="node7" class="node">
@@ -85,7 +85,7 @@
 <title>a4-&gt;a5</title>
 <path fill="none" stroke="#000000" d="M144,-298.269C144,-298.269 144,-286.5248 144,-286.5248"/>
 <polygon fill="#000000" stroke="#000000" points="147.5001,-286.5248 144,-276.5248 140.5001,-286.5249 147.5001,-286.5248"/>
-<text text-anchor="middle" x="127" y="-284.3969" font-family="sans-serif" font-size="10.00" fill="#000000">false</text>
+<text text-anchor="middle" x="127" y="-284.3969" font-family="sans-serif" font-size="10.00" fill="#000000">false   </text>
 </g>
 <!-- a6 -->
 <g id="node8" class="node">