diff options
| author | Bojidar Marinov | 2015-09-24 10:17:06 +0300 |
|---|---|---|
| committer | Bojidar Marinov | 2015-09-24 10:17:06 +0300 |
| commit | d9583f8a7283bbeac1dceaf0885bba297961432e (patch) | |
| tree | 35056cd07ab1bebd55698f953f7bbbe26916157e /core/ustring.cpp | |
| parent | 20a1c765db5ecb8c2020ce6dea1de1fda706ee1f (diff) | |
| download | godot-d9583f8a7283bbeac1dceaf0885bba297961432e.tar.gz godot-d9583f8a7283bbeac1dceaf0885bba297961432e.tar.zst godot-d9583f8a7283bbeac1dceaf0885bba297961432e.zip | |
Diffstat (limited to 'core/ustring.cpp')
| -rw-r--r-- | core/ustring.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp index e5419effc..7582376fe 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -3066,7 +3066,7 @@ String String::world_wrap(int p_chars_per_line) const { } else if (operator[](i)==' ' || operator[](i)=='\t') { last_space=i; } else if (operator[](i)=='\n') { - ret+=substr(from,i-from); + ret+=substr(from,i-from)+"\n"; from=i+1; last_space=-1; } |
