Skip to content

Commit

Permalink
8261931: IGV: quick search fails on multi-line node labels
Browse files Browse the repository at this point in the history
Remove line breaks from the 'label' property that is searched on by default.

Reviewed-by: neliasso, xliu, chagedorn
  • Loading branch information
robcasloz committed Mar 11, 2021
1 parent 7988c1d commit f6b4ba0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public String[] getLines() {
// class NodeQuickSearch in the View module.
for (InputNode n : getSource().getSourceNodes()) {
String label = resolveString(diagram.getNodeText(), n.getProperties());
n.getProperties().setProperty("label", label);
n.getProperties().setProperty("label", label.replaceAll("\\R", " "));
}
}
return lines;
Expand Down

0 comments on commit f6b4ba0

Please sign in to comment.