File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,11 @@ multiple options (separated by spaces within the opening tag). The closing tag
5555delimits the end of the formatted part. In some cases, both the closing tag and
5656the content can be omitted.
5757
58+ Unlike BBCode in HTML, leading/trailing whitespace is not removed by a
59+ RichTextLabel upon display. Duplicate spaces are also displayed as-is in the
60+ final output. This means that when displaying a code block in a RichTextLabel,
61+ you don't need to use a preformatted text tag.
62+
5863.. code-block :: none
5964
6065 [tag]content[/tag]
@@ -618,7 +623,6 @@ the built-in :ref:`class_Color` class. Named classes can be specified in a numbe
618623styles using different casings: ``DARK_RED ``, ``DarkRed ``, and ``darkred `` will give
619624the same exact result.
620625
621-
622626.. _doc_bbcode_in_richtextlabel_hex_colors :
623627
624628Hexadecimal color codes
@@ -633,7 +637,6 @@ e.g. ``[color=#ffffff88]translucent white[/color]``. Note that the alpha channel
633637is the **last ** component of the color code, not the first one. Short RGBA
634638color codes such as ``#6f28 `` (equivalent to ``#66ff2288 ``) are supported as well.
635639
636-
637640.. _doc_bbcode_in_richtextlabel_cell_options :
638641
639642Cell options
You can’t perform that action at this time.
0 commit comments