IBM Support

DOORS DXL rich text function outputs double backslash characters

Troubleshooting


Problem

Attempts to export text that contains the backslash character \ using IBM Rational DOORS rich text in string function in combination with .text results in double backslash characters \\ in the output.

Symptom

The DXL output is returning two backslashes for every one backslash contained in the text.

Steps to reproduce:

Run the following DXL for an open module that contains an object with a backslash in the text:


Object o

for o in current Module do {

   string rts = richText( o."Object Text" )

   RichText rt

   for rt in rts do {

      string plainText = rt.text

      print plainText "\n"

   }

}[</code>]


Expected results: A single backslash is rendered in the output.

Actual results: Two backslashes are rendered in the output (see image below).

image

[{"Product":{"code":"SSKR2T","label":"IBM Engineering Requirements Management DOORS"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"9.3;9.3.0.1;9.3.0.2;9.3.0.3;9.3.0.4;9.3.0.5;9.3.0.6","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
01 May 2020

UID

swg21586745