Skip to content

Commit 267cc97

Browse files
committed
CSSTUDIO-1976 Escape newlines in TextField "text" to prevent newlines from being removed.
1 parent 147815d commit 267cc97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/display/editor/src/main/java/org/csstudio/display/builder/editor/properties/PropertyPanelSection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ else if (property instanceof MacroizedWidgetProperty)
563563
final MacroizedWidgetProperty<?> other_prop = (MacroizedWidgetProperty<?>) w.getProperty(macro_prop.getName());
564564
undo.execute(new SetMacroizedWidgetPropertyAction(other_prop, result.get()));
565565
}
566-
text.setText(result.get());
566+
text.setText(result.get().replaceAll("\n", "\\\\n"));
567567
Tooltip.install(text, new Tooltip(result.get()));
568568
});
569569
field = new HBox(text, open_editor);

0 commit comments

Comments
 (0)