File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -407,8 +407,23 @@ else if (msg.getTypeOf(fieldName).equalsIgnoreCase("message-list") && msg.getVal
407407
408408 value += "</tr></table>" ;
409409 }
410-
411- ret += "<tr><td align=center width=225 style='border-bottom: 1px dotted #d00;'>" +
410+
411+ if ("tuplelist" .equalsIgnoreCase (msg .getUnitsOf (fieldName ))) {
412+ value = value .replaceAll (";" , "; " );
413+ } else if ("list" .equalsIgnoreCase (msg .getUnitsOf (fieldName ))) {
414+ value = value .replaceAll ("," , ", " );
415+ } else if ("enumerated" .equalsIgnoreCase (msg .getUnitsOf (fieldName ))) {
416+ value = value .replaceAll ("\\ |" , " | " );
417+ } else if ("bitfield" .equalsIgnoreCase (msg .getUnitsOf (fieldName ))) {
418+ value = value .replaceAll ("\\ |" , " | " );
419+ } else if (IMCFieldType .TYPE_PLAINTEXT .toString ().equalsIgnoreCase (msg .getTypeOf (fieldName ))
420+ && (msg .getUnitsOf (fieldName ) == null || "" .equalsIgnoreCase (msg .getUnitsOf (fieldName )))) {
421+ value = value .replaceAll ("([^ ]);([^ ])" , "$1; $2" );
422+ value = value .replaceAll ("([^ ]),([^ ])" , "$1, $2" );
423+ value = value .replaceAll ("([^ ])\\ |([^ ])" , "$1 | $2" );
424+ }
425+
426+ ret += "<tr><td align=center width=225 style='border-bottom: 1px dotted #d00;'>" +
412427 fieldName +"</td><td width=225 style='border-bottom: 1px dotted #d00;'>" +
413428 value + "</td></tr>" ;
414429 }
You can’t perform that action at this time.
0 commit comments