Yeah, I found the flaw in test case 2 in the mean time.

 Code:

Input: ... ~ this-should-be-counted-as-one-word  ~ ...
... ~ should-be-counted-as-one-word  should-be-counted-as-one-word ~

Output: ... ~~Knight:  this-should-be-counted-as-one-word~ ...
... ~~Knight:  should-be-counted-as-one-word should-be-counted-as-one-word~



and the rules state:

 Quote:

Any appearance of space characters inside the input will be replaced by a single space.


There is no rule that states that the Input line should be trimmed on the right!
So the output should therefore be:

 Code:

~~Knight:  this-should-be-counted-as-one-word ~
... 
~~Knight:  should-be-counted-as-one-word should-be-counted-as-one-word ~






Edited by Jochen (2007-12-16 08:25 PM)
Edit Reason: added all flaws in test case 2
_________________________