Fix typo for word_wrap
This commit is contained in:
parent
cb7661df94
commit
c333659ebc
4 changed files with 5 additions and 5 deletions
|
@ -3173,7 +3173,7 @@ bool String::is_valid_identifier() const {
|
||||||
|
|
||||||
//kind of poor should be rewritten properly
|
//kind of poor should be rewritten properly
|
||||||
|
|
||||||
String String::world_wrap(int p_chars_per_line) const {
|
String String::word_wrap(int p_chars_per_line) const {
|
||||||
|
|
||||||
int from=0;
|
int from=0;
|
||||||
int last_space=0;
|
int last_space=0;
|
||||||
|
|
|
@ -218,7 +218,7 @@ public:
|
||||||
String c_escape() const;
|
String c_escape() const;
|
||||||
String c_unescape() const;
|
String c_unescape() const;
|
||||||
String json_escape() const;
|
String json_escape() const;
|
||||||
String world_wrap(int p_chars_per_line) const;
|
String word_wrap(int p_chars_per_line) const;
|
||||||
|
|
||||||
String percent_encode() const;
|
String percent_encode() const;
|
||||||
String percent_decode() const;
|
String percent_decode() const;
|
||||||
|
|
|
@ -3049,7 +3049,7 @@ void PropertyEditor::update_tree() {
|
||||||
if (E) {
|
if (E) {
|
||||||
descr=E->get().brief_description;
|
descr=E->get().brief_description;
|
||||||
}
|
}
|
||||||
class_descr_cache[type]=descr.world_wrap(80);
|
class_descr_cache[type]=descr.word_wrap(80);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3142,7 +3142,7 @@ void PropertyEditor::update_tree() {
|
||||||
if (E) {
|
if (E) {
|
||||||
for(int i=0;i<E->get().methods.size();i++) {
|
for(int i=0;i<E->get().methods.size();i++) {
|
||||||
if (E->get().methods[i].name==setter.operator String()) {
|
if (E->get().methods[i].name==setter.operator String()) {
|
||||||
descr=E->get().methods[i].description.strip_edges().world_wrap(80);
|
descr=E->get().methods[i].description.strip_edges().word_wrap(80);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -254,7 +254,7 @@ void SceneTreeEditor::_cell_button_pressed(Object *p_item,int p_column,int p_id)
|
||||||
String config_err = n->get_configuration_warning();
|
String config_err = n->get_configuration_warning();
|
||||||
if (config_err==String())
|
if (config_err==String())
|
||||||
return;
|
return;
|
||||||
config_err=config_err.world_wrap(80);
|
config_err=config_err.word_wrap(80);
|
||||||
warning->set_text(config_err);
|
warning->set_text(config_err);
|
||||||
warning->popup_centered_minsize();
|
warning->popup_centered_minsize();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue