1). Right click on the Text Area which contains the Calculated Value and select "Edit HTML". The Calculated Value dynamic item will be seen in the HTML like:
<SpotfireControl id="b8b61cbc93ee4821a069788b31042686" />
2). Wrap the SpotfireControl element with the following HTML:
Before:
<pre style="white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word;">
After:
</pre>
Example:
<pre style="white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word;"><SpotfireControl id="b8b61cbc93ee4821a069788b31042686" /></pre>
3). Click the "Save" icon.