maxWidth += spaceWidth;
if (! includeWS) { maxWidth += spaceWidth; }
    private int calcMinWidthFromWordLength(            LayoutContext c, boolean trimLeadingSpace, boolean includeWS) {        int spaceWidth = getSpaceWidth(c);                int last = 0;        int current = 0;        int maxWidth = 0;        int spaceCount = 0;                String text = getText(trimLeadingSpace);                while ( (current = text.indexOf(WhitespaceStripper2.SPACE, last)) != -1) {            int length = getTextWidth(c, text.substring(last, current));            if (spaceCount > 0) {                if (includeWS) {                    for (int i = 0; i < spaceCount; i++) {                        length += spaceWidth;                    }                }                spaceCount = 0;            }            if (length > _minWidth) {                _minWidth = length;            }            maxWidth += length;            maxWidth += spaceWidth;                        last = current;            for (int i = current; i < text.length(); i++) {                if (text.charAt(i) == ' ') {                    spaceCount++;                    last++;                } else {                    break;                }            }        }                int length = getTextWidth(c, text.substring(last));        if (spaceCount > 0) {            if (includeWS) {                for (int i = 0; i < spaceCount; i++) {                    length += spaceWidth;                }            }            spaceCount = 0;        }                if (length > _minWidth) {            _minWidth = length;        }        maxWidth += length;                return maxWidth;    }