This is an automated email from the ASF dual-hosted git repository.

exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new 3ed87a2982 NIFI-10594 Render empty lines in Labels
3ed87a2982 is described below

commit 3ed87a2982f490fddab6356db767b0f3f124f79c
Author: Denes Arvay <[email protected]>
AuthorDate: Wed Oct 12 21:18:30 2022 +0200

    NIFI-10594 Render empty lines in Labels
    
    This closes #6519
    
    Signed-off-by: David Handermann <[email protected]>
---
 .../nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-label.js       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-label.js
 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-label.js
index e4c07b111b..bee6e47f1f 100644
--- 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-label.js
+++ 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-label.js
@@ -268,7 +268,7 @@
                         .attr('x', '0.4em')
                         .attr('dy', '1.2em')
                         .text(function () {
-                            return line;
+                            return line == "" ? " " : line;
                         })
                         .style('fill', function (d) {
                             return nfCommon.determineContrastColor(

Reply via email to