-
Notifications
You must be signed in to change notification settings - Fork 407
Description
Describe the bug
Mapping Value dialog in administrator replaces tabs with newlines.
I believe this isssue may be caused by this line in ViewContentDialog constructor:
messageContent.setText(text.replaceAll("\t", "\n"));
To Reproduce
Setup steps:
You will need a message with a mapping variable that contains tabs
Steps to reproduce the behavior:
- Select message in Mirth Connect Administrator
- Click on the Mappings tab
- Double click Value item
- Mapping Value dialog displays value with tabs removed and spurious newlines added.
Expected behavior
The Mapping Value dialog should display data accurately
Actual behavior
The Mapping Value dialog replaces tabs with newlines
Environment (please complete the following information):
- OS: Windows 11
- Java Distribution/Version: Eclipse Adoptium 17.0.8.1
- Connect Version: 4.5.2
Additional context
A similar issue exists in the Log Information dialog, accessed from the Server Log tab in the Dashboard. In this case tabs are retained but spurious newlines are inserted. See this line in ViewServerLogContentDialog constructor:
serverLogTextPane1.setText(text.replaceAll("\t", "\n\t"));