Repository: godotengine/godot (language: cpp)

Issue:
BBCode squishes Ordered Lists with no space
### Tested versions

4.4 rc3

### System information

Windows 11

### Issue description

If you try to create a ordered list in BBCode, the leading number/letter/numeral provides no space before the text as expected (even this github editor I am writing in puts a space in the ordered lists). The code: 
[ol]This
is
Ordered
Lists[/ol]

Creates the following:

  1.This
  2.is
  3.Ordered
  4.Lists

it should be

1. This
2. is
3. Ordered
4. Lists

There is no way to add the separation between the number and the text. This bug does not exist in the Unordered List. The unordered list allows multiple characters which is perfect. ie. [ul bullet=** ]Test[/ul] will produce:

** Test



### Steps to reproduce

Add a richtextlabel to your project and put in this code:
[ol]This
is
Ordered
Lists[/ol]

### Minimal reproduction project (MRP)

N/A
BBCode squishes Ordered Lists with no space
### Tested versions

4.4 rc3

### System information

Windows 11

### Issue description

If you try to create a ordered list in BBCode, the leading number/letter/numeral provides no space before the text as expected (even this github editor I am writing in puts a space in the ordered lists). The code: 
[ol]This
is
Ordered
Lists[/ol]

Creates the following:

  1.This
  2.is
  3.Ordered
  4.Lists

it should be

1. This
2. is
3. Ordered
4. Lists

There is no way to add the separation between the number and the text. This bug does not exist in the Unordered List. The unordered list allows multiple characters which is perfect. ie. [ul bullet=** ]Test[/ul] will produce:

** Test



### Steps to reproduce

Add a richtextlabel to your project and put in this code:
[ol]This
is
Ordered
Lists[/ol]

### Minimal reproduction project (MRP)

N/A


Discussion / hints:
Option to control format for `ol` is added by https://github.com/godotengine/godot/pull/92749
https://github.com/godotengine/godot/pull/92749 looks great. That was added in July of last year. Almost a year ago. Has that progressed at all? Regardless of where it is, there needs to be a space in between the numbers and text
Option to control format for `ol` is added by https://github.com/godotengine/godot/pull/92749
https://github.com/godotengine/godot/pull/92749 looks great. That was added in July of last year. Almost a year ago. Has that progressed at all? Regardless of where it is, there needs to be a space in between the numbers and text

Fix patch:
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp
index a76a43b25ae6..cb99260de9c6 100644
--- a/scene/gui/rich_text_label.cpp
+++ b/scene/gui/rich_text_label.cpp
@@ -254,7 +254,7 @@ String RichTextLabel::_get_prefix(Item *p_item, const Vector<int> &p_list_index,
 		}
 		prefix = segment + prefix;
 	}
-	return prefix;
+	return prefix + " ";
 }
 
 void RichTextLabel::_update_line_font(ItemFrame *p_frame, int p_line, const Ref<Font> &p_base_font, int p_base_font_size) {


Test patch: