RT Wikitext CF and newline character processing

Hello all,
just dig into the Wikitext CF processing. Configured the RT and
CKEditor using the wikia how-to [1] with some additional changes to
CKEditor configuration.

Just discovered one issue with the displaying the Wikitext CF via Web interface.

CKEditor add
on every newline by default (didn’t find the
possibility to suppress that by configuration option) and the RT does
replacement of every newline character ‘\n’ in CF value by ‘

string (found in /opt/rt4/lib/RT/Interface/Web.pm in
ProcessColumnMapValue subroutine).

There are two ways to get it solved:

  1. let CKEditor not to send <br > tag to RT
  2. let RT not to replace \n by

Ad 1)
Some advanced output filtering rules should be written.

Ad 2)
Looks like it is possible to disable the replacement by setting
‘Escape’ argument to 0, but not sure how to do that for Wikitext CF
only (/opt/rt4/share/html/Elements/ShowCustomFieldWikitext seems to be
the proper place for that).

Other workaround could be to call ScrubHTML subroutine defined in
Web.pm with disablement of the ‘br’ tag for Wikitext CF.

Any other thoughts or did somebody solve this issue already (other
than the styling change)?

More information:
“testxy
\ntestza” is the text in RT’s DB
“testxy

testza” is the RT’s HTML output

[1] http://requesttracker.wikia.com/wiki/Rich_Text_Custom_Fields

Peter Viskup