Because XPages are essentially xml, you cannot add, for example, " " for a space etc directly into the source. You need to use instead the xml reference "&#160;" (you can press space twice for this to be inserted automatically).