I have been putting some “pseudo code” in my sceanrio descriptions but when the document is generated it seems to strip out any whitespace at the start of a line. I would like to suppress that. Any ideas.
This is related to the way that EA saves this text, and how it makes it available at the API. Sometimes it adds suprious, invisible whitespace , expecially when the text has been copy/pasted from other tools.
So, we remove it – it usually gives better results. Except in your case.
Not a great solution, but you might add the psedo-code into a tagged value ?
I’m not having trouble with CRLFs which seem to be reproduced.
I have tried putting a “.” at the front of every line but its still suppresses multiple white spaces to a single space.
If I type my steps into structured spec – how do I get those to reproduce in the document as currently this doesn’t work for me.
I have a fix ready now for the problem of missing-out leading blanks. I assume that the blanks are needed so that your pseudo-code is sensibly indented – but are the chars blanks or tabs? I’ve only done the fix for blanks, as EA doesn’t let us add tab chars into description fields, but if your psedo-code is being copied-in from somewhere else, it might have tabs as well.
If you only have blanks, let me know, and I’ll put the fixed version onto eadocx.com this morning.
Download eaTeamWorks today for several free for life features, plus no obligation, 30-day trials of all the products: eaDocX, ea Revision Manager, eaSheets, Model Expert and PortfolioManager. Discover for yourself why we sell the world’s best-selling Enterprise Architect extension.