Consequent space characters get truncated

Hi,
I have a .xls datafile which includes a codeline in following form:

 >00009000024180789<  0000057224>                 1502525< 24>

And although it is mapped as string with trim ‘none’, in designer it gets truncated like:
>00009000024180789< 0000057224> 1502525< 24>

Any ideas on how to keep the spaces?

thanks!
Akis

Hi Akispapa,

Please check this item on How-to OL Learn:

This describes what is possible.

Kind regards,
Dennis Kleijne

I believe you encounter the fact that in HTML sequences of white space are collapsed. So in essence a sequence of spaces will be shown as one. This can be behavior can be changed by setting the CSS property that handles the white space of an element.

Paragraph properties
To set this on a single paragraph or element:

  1. Place the cursor in the text.
  2. Control + click and choose Paragraph from the contextual menu (or use Ctrl+E). The Paragraph properties dialog appears.
  3. Click Advanced at the lower left of the dialog.
  4. Enter the white-space property and set its value to pre.
  5. Click OK to apply the change.

CSS stylesheet
Alternatively set this property in a CSS stylesheet. The following assumes you assigned a class name to the element (in this case thecode).

  1. Open the context_all_styles.css from the Resources panel.
  2. Enter the CSS snippet below.
  3. Save the stylesheet file.

Hope this is of some help,

Erik

.thecode {
	white-space: pre;
}

PS. I believe there is an error in the article reference by Dennis. The Whitespace checkbox in the Attributes panel refers to the following feature: PlanetPress Connect 2020.2 User Guide

I’ll make sure this will be corrected.

I did a mix of the two suggestions and works fine.
Thank you both!