Fix commit 641a5b7a144 for "nbsp" output in SVG files
authorBruce Momjian
Tue, 26 Nov 2024 18:07:53 +0000 (13:07 -0500)
committerBruce Momjian
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

Backpatch-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 @@
 a4->end
 
 
-true
+true  
 
 
 
@@ -85,7 +85,7 @@
 a4->a5
 
 
-false
+false