diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 26189e16..50f5eaac 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -3657,7 +3657,7 @@ namespace Volian.Print.Library results.Add(responsStr.Substring(start, lastspace - start).Trim(" ".ToCharArray()) + "\r\n"); start = lastspace + (spFound?1:0); // increment start based on whether a space is found, i.e. if no space keep at 'indx' // width either is equal to width of text after the last space, or is zero if at the maxlen of width: - width = (width - start - 1) > 0 ? width - start - 1 : 0; + width = (indx - lastspace - 1) > 0 ? indx - lastspace - 1 : 0; lastspace = 0; } }