X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Ftextual%2Fstring_manipulation.cpp;h=b2ba47480437849ce92d8dc23be30788e3c6a955;hb=6fd0c83fb2f5fed78bc0014f912e77a0963bb962;hp=a0febcaa3a9c4eb3dd32b4d75b5efdfc5bbf8d17;hpb=4c8e217471c50dfd75f293fe79c1229defb25db1;p=feisty_meow.git diff --git a/nucleus/library/textual/string_manipulation.cpp b/nucleus/library/textual/string_manipulation.cpp index a0febcaa..b2ba4748 100644 --- a/nucleus/library/textual/string_manipulation.cpp +++ b/nucleus/library/textual/string_manipulation.cpp @@ -222,11 +222,11 @@ void string_manipulation::split_lines(const astring &input_in, astring &output, // check that we're still in bounds. int chars_added = next_break - j + 1; - if (col + chars_added + punct_adder > max_column + 1) { + if (col + chars_added + punct_adder > max_column) { // we need to break before the next breakable character. break_line = true; just_had_break = true; - if (col + chars_added <= max_column + 1) { + if (col + chars_added <= max_column) { // it will fit without the punctuation spaces, which is fine since // it should be the end of the line. invisible = false; @@ -234,7 +234,7 @@ void string_manipulation::split_lines(const astring &input_in, astring &output, end_sentence = false; punct_adder = 0; keep_on_line = true; - } else if (min_column + chars_added > max_column + 1) { + } else if (min_column + chars_added > max_column) { // this word won't ever fit unless we break it. int chars_left = max_column - col + 1; // remember to take out room for the dash also.