XPage removes space(s) from text

  • I only just discovered this today, but it’s pretty consistent the four or five variations I tried. It also persists across DDE reload and server reload, so I set the Reproducability to “Always”.- I have a XPage with this div on it:
I'd be a title if I had one

It clearly has a space between “I” and xp:span... in DDE, but when I load this in the browser, that space is missing so I get this:

I’d be a title if Ihad one

If I remove the xp:span... so “had” is no longer bold, that space appears like it should. If I put the bold back, it’s gone again.

  • If I use old-style tags, the space disappears from both sides of the word “had”.

  • This includes   - these are stripped just like a “real” space for xp:span... and tags.

  • I searched for “XPage AND removes AND space”, “XPage AND space”, plus “web AND remove AND space”, but only the last query had any hits, and that hit had nothing to with missing spaces on a page render.

  • I also searched the forum for information about pre-existing bug reports, but found nothing. I know it exists because I keep seeing SPR references, but I don’t seem to be clever enough to find it.

  • Is this a known issue? Thanks for your time…

Subject: It’s partially another “hidden error” DDE bug…

  • Today, after shutting the system down for the night, the Custom Control that contains the text with   has an error:

“The entity nbsp was referenced, but not declared”

If I have to cold boot the system to get errors to appear DDE is uselessly broken. I spent hours and hours trying to figure out the magically disappearing spaces yesterday, and for what? So a cold boot will show an error?

True, it’s a right moronic move to put an ampersand into XML to start with, done in desperation to try to fix the disappearing spaces bug. But that doesn’t change the fact that on multiple occasions DDE has completely and totally hidden errors until either relaunched or the system was cold booted.

I was SO looking foward to using Eclipse in R8, like nearly giddy with the idea of finally ditching Designer. I totally love Eclipse and have been using it for years but DDE has nearly soured me on that implementation of it…

Subject: space…

David,

experienced a similar or the same issue with Link controls. Somehow I came across this solution which seems to work consistently (the #160 code number is the numeric value behind HTML’s “nbsp” entity):

xp:panel

Please  

	<xp:link escape="true" text="login" id="link1">

		<xp:this.value>(login url link goes here...)</xp:this.value>

	</xp:link>

&#160;to enter this application

</xp:panel>

Maybe this one can help you, too

regards,

-Lothar

Subject: Rock on, Lothar…

  • Thanks!! I always completely forget about the #nnn equivalents…

Subject: we are continuing to improve

there have been major improvements in 8.5.1!!!

We’ll research this case, but if you have other situations in which errors have not been shown, please let us know, and we’ll investigate those, too.