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?
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
-!}}}|
One way to do this is to define a variable with the multi-line text and then refer to this from the table cell:
!define sql { SELECT *
FROM bar
WHERE gaz = 14
}
|sql|
|${sql}|
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With