fitnesse

How do I put preformatted text into a FitNesse fixture table cell?


I want to be able to put preformatted text (i.e. containing line breaks) into a single cell of a FitNesse fixture table. Is there a way to manipulate the FitNesse wiki markup to do this?


Solution

  • Use !- -! to get multiline table cells and {{{ }}} to get preformatted text. The {{{ has to be outside the !-

    For example:

    |sql|
    |{{{!- SELECT *
         FROM bar
         WHERE gaz = 14
    -!}}}|