Skip to content

Commit adc3ac5

Browse files
committed
UG: Document that preformatted text with spaces in Robot data requires escaping.
Fixes robotframework#2022
1 parent 186dd22 commit adc3ac5

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

doc/userguide/src/Appendices/DocumentationFormatting.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ same example could be written like this:
103103
No automatic newline is added if a line already ends with a newline or
104104
if it ends with and an `escaping backslash`__. Notice also that if
105105
documentation or metadata is defined in multiple cells in a same row,
106-
these cells are catenated together with spaces. All these cases are
106+
these cells are concatenated together with spaces. All these cases are
107107
illustrated in the examples below where all test cases end up having
108108
the same two line documentation.
109109

@@ -402,10 +402,19 @@ The above documentation is formatted like this:
402402
<p>After block.</p>
403403
</div>
404404

405+
When documenting suites, tests or keywords in Robot Framework test data,
406+
having multiple spaces requires escaping with a backslash to `prevent
407+
ignoring spaces`_. The example above would thus be written like this::
408+
409+
Doc before block:
410+
| inside block
411+
| \ \ \ some \ \ additional whitespace
412+
After block.
413+
405414
Horizontal ruler
406415
----------------
407416

408-
Horizontal rulers (the <hr> tag) make it possible to separate larger
417+
Horizontal rulers (the `<hr>` tag) make it possible to separate larger
409418
sections from each others, and they can be created by having three or more
410419
hyphens alone on a line::
411420

0 commit comments

Comments
 (0)