Format source codes

This commit is contained in:
topecongiro
2017-06-14 20:39:07 +09:00
parent c06d487712
commit b8f11a4e3c
14 changed files with 79 additions and 78 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ pub fn rewrite_string<'a>(orig: &str, fmt: &StringFormat<'a>) -> Option<String>
if cur_end < cur_start + MIN_STRING {
cur_end = cur_start + max_chars;
while !(punctuation.contains(graphemes[cur_end - 1]) ||
graphemes[cur_end - 1].trim().is_empty())
graphemes[cur_end - 1].trim().is_empty())
{
if cur_end >= graphemes.len() {
let line = &graphemes[cur_start..].join("");