Description

Thet text/html formatter replaces all the spaces in the text contained in formatter.code() with non-breaking spaces,  . This not only removes all the control on line wrapping from the style designer, but also makes the HTML larger and harder to read (an makes some tests fail).

Steps to reproduce

  1. Edit a page
  2. Insert some "test text", enclosed in triple curly braces.
  3. View the page's source.
  4. Observe the offending  .

Example

Some {{{test text

here.}}}

Some test text here.

Component selection

Details

This Wiki

Workaround

Use formatter.rawHTML('<tt>') instead of formatter.code(...).

Discussion

This should really be achieved by adding this somewhere to the style sheets:

tt { white-space: pre }

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/HtmlFormatterReplacesSpacesWithNbspInTT (last edited 2007-10-29 19:13:24 by localhost)