From 1c58e78ce97ca59861235a00921cd327f2d86824 Mon Sep 17 00:00:00 2001 From: Scott Aslan Date: Fri, 12 May 2017 09:28:24 -0400 Subject: [PATCH] [NIFI-3876] trim whitespace processor names before applying ellipsis Signed-off-by: Pierre Villard This closes #1789. --- .../nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js index 945423d232..efa21c4b83 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js @@ -554,6 +554,7 @@ * @param {string} text */ ellipsis: function (selection, text) { + text = text.trim(); var width = parseInt(selection.attr('width'), 10); var node = selection.node();