lib: Painter: Fix squeezedPrint function for maxLength <= 3.