Thank you! I will try this. Not in java, as I have no idea of java.
Note: I have  to make sure, that "occasional" authors do not try  
"layout" their content with white spaces, while writing the content an  
afterwards complain, that all the work they did is lost after saving  
the document....

Kindest regards
Thomas Dumm



Am 26.06.2008 um 18:09 schrieb Hussein Shafie:

Thomas Dumm wrote:
> Is there a way (setting) to make it impossible to **enter** more  
> than one
> consecutive ordinary space while editing the document with XMLmind?
> The setting "preserveSpace" does not help here, as I understand the  
> manual.

Yes by binding the keystroke SPACE 
(http://www.xmlmind.com/xmleditor/_distrib/doc/configure/binding.html 
) to a custom command (written in Java[tm] for speed) which would  
refuse to insert a space after another one.

Note that this is normally not needed as whitespace is normalized when  
you save the document (unless xml:space="preserve" of course).  
Example: type 3 consecutive space characters, save the document,  
reopen it: you'll find just a single space character.







Reply via email to