hi,

I've got some questions and remarks about the reducewhitespace option of the mm:content tag and the implementing class SpaceReducer.java. (in mmbase 1.7)

It correctly removes duplicate newlines, duplicate trailing whitespaces and 'inbetween' whitspace, but it doesn't remove remove leading whitespaces. From the SpaceReducer.java code it looks like some of this was on purpose. Is that correct? I would like it to remove leading whitespace to.

It appends a space on every line in my case - this is caused by the following:

SpaceReducer.java handles '\n' as a special character, I think that's a bit strange since in xml spaces and newlines have the same meaning. Also if it makes an exception for '\n' it probably also should make an exception for '\r' and '\r\n' shouldn't it? Right now it treats '\r' as whitespace, causing the extra spaces on every line if you use 'windows-style' line separators.

Also it is useful to know that postprocessor="none" will disable the default postprocessor, but I couldn't find that in the documentation.

cheers,

  Simon Groenewolt
  Submarine




Reply via email to