summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthat <github@that.at>2016-01-16 05:13:45 +0100
committerEthan Yonker <dees_troy@teamw.in>2016-01-18 16:44:05 +0100
commit1cc7fed32e89a4d80fe7d5253c3d7d6fdeddaee1 (patch)
treeccf76f1bc3c69f3c153f72016704fd3d62960ada
parentDo not require mounting during zip flashing if path exists (diff)
downloadandroid_bootable_recovery-1cc7fed32e89a4d80fe7d5253c3d7d6fdeddaee1.tar
android_bootable_recovery-1cc7fed32e89a4d80fe7d5253c3d7d6fdeddaee1.tar.gz
android_bootable_recovery-1cc7fed32e89a4d80fe7d5253c3d7d6fdeddaee1.tar.bz2
android_bootable_recovery-1cc7fed32e89a4d80fe7d5253c3d7d6fdeddaee1.tar.lz
android_bootable_recovery-1cc7fed32e89a4d80fe7d5253c3d7d6fdeddaee1.tar.xz
android_bootable_recovery-1cc7fed32e89a4d80fe7d5253c3d7d6fdeddaee1.tar.zst
android_bootable_recovery-1cc7fed32e89a4d80fe7d5253c3d7d6fdeddaee1.zip
-rw-r--r--gui/scrolllist.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/scrolllist.cpp b/gui/scrolllist.cpp
index d857e06b3..6e974f205 100644
--- a/gui/scrolllist.cpp
+++ b/gui/scrolllist.cpp
@@ -637,6 +637,9 @@ bool GUIScrollList::AddLines(std::vector<std::string>* origText, std::vector<std
if (origColor)
rColor->push_back(curr_color);
curr_line = curr_line.substr(wrap_pos);
+ /* After word wrapping, delete any leading spaces. Note that the word wrapping is not smart enough to know not
+ * to wrap in the middle of something like ... so some of the ... could appear on the following line. */
+ curr_line.erase(0, curr_line.find_first_not_of(" "));
} else {
rText->push_back(curr_line);
if (origColor)