Explorar el Código

Merge pull request #96460 from bruvzg/rtl_para_breaks

[RTL] Do not add final newline to the paragraph context.
Rémi Verschelde hace 1 año
padre
commit
c038995707
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      scene/gui/rich_text_label.cpp

+ 1 - 1
scene/gui/rich_text_label.cpp

@@ -547,7 +547,7 @@ float RichTextLabel::_shape_line(ItemFrame *p_frame, int p_line, const Ref<Font>
 				if (font_size_it && font_size_it->font_size > 0) {
 					font_size = font_size_it->font_size;
 				}
-				l.text_buf->add_string("\n", font, font_size);
+				l.text_buf->add_string(String::chr(0x200B), font, font_size);
 				txt += "\n";
 				l.char_count++;
 				remaining_characters--;