From 486f8fd8e7b02b08832cd2bedf62afa351bdf672 Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Fri, 6 Jul 2018 11:58:22 +1200 Subject: Fixup formatting of tests and source --- src/string.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/string.rs') diff --git a/src/string.rs b/src/string.rs index a5453c0a8ed..39eaf57d72e 100644 --- a/src/string.rs +++ b/src/string.rs @@ -72,7 +72,8 @@ pub fn rewrite_string<'a>( // succeed. let mut max_chars = shape .width - .checked_sub(fmt.opener.len() + ender_length + 1)? + 1; + .checked_sub(fmt.opener.len() + ender_length + 1)? + + 1; // Snip a line at a time from `orig` until it is used up. Push the snippet // onto result. -- cgit 1.4.1-3-g733a5