1 Reply Latest reply on Jun 10, 2013 11:03 AM by john_dube

    DxDesigner AppendOutput and spaces

    andrew_french

      I'm using EE7.9.4 update 9

       

      In DxDesigner when I try to write information to the output window using automtation, multiple spaces in my strings are consolodated into one space.  Why does it do this?  This is not desireable.

       

      If I say

      VdApp.AppendOutput("Output", "There   are   three   spaces   between   each   word");

       

      the actual output in Dx is

      There are three spaces between each word

       

       

      I can use underscores or some other special character in place of spaces to get around the issue but then my output looks messy.  I'd much rather the tool do exactly what I am telling it to do, not what it thinks it should do.  Does anyone else see this issue?

        • 1. Re: DxDesigner AppendOutput and spaces
          john_dube

          Hi Andrew,

           

          The output window is based on an HTML web browser, and unless the <pre> tag is used, multiple spaces are consolidated into a single space.

           

          To keep the spaces without using a different format, use the non-breaking-space : There are   spaces...

           

          The easiest way is to call the Replace function:

           

               VdApp.AppendOutput("Output", Replace("There   are   three   spaces   between   each   word", " ", " "))

           

          John