@@ -208,7 +208,7 @@ public void appendHeader(final int level, final CharSequence text) throws IOExce
208208 final int idx = Math .min (level , fillChars .length ) - 1 ;
209209 final TextStyle style = styleBuilder .get ();
210210 final Queue <String > queue = makeColumnQueue (text , style );
211- queue .add (Util .createPadding (style .getLeftPad ()) + Util .repeat (Math .min (text .length (), style .getMaxWidth ()), fillChars [idx ]));
211+ queue .add (Util .repeatSpace (style .getLeftPad ()) + Util .repeat (Math .min (text .length (), style .getMaxWidth ()), fillChars [idx ]));
212212 queue .add (BLANK_LINE );
213213 printQueue (queue );
214214 }
@@ -261,7 +261,7 @@ public void appendTitle(final CharSequence title) throws IOException {
261261 if (!Util .isEmpty (title )) {
262262 final TextStyle style = styleBuilder .get ();
263263 final Queue <String > queue = makeColumnQueue (title , style );
264- queue .add (Util .createPadding (style .getLeftPad ()) + Util .repeat (Math .min (title .length (), style .getMaxWidth ()), '#' ));
264+ queue .add (Util .repeatSpace (style .getLeftPad ()) + Util .repeat (Math .min (title .length (), style .getMaxWidth ()), '#' ));
265265 queue .add (BLANK_LINE );
266266 printQueue (queue );
267267 }
@@ -307,8 +307,8 @@ public TextStyle.Builder getStyleBuilder() {
307307 * @return A queue of the string wrapped.
308308 */
309309 protected Queue <String > makeColumnQueue (final CharSequence columnData , final TextStyle style ) {
310- final String lpad = Util .createPadding (style .getLeftPad ());
311- final String indent = Util .createPadding (style .getIndent ());
310+ final String lpad = Util .repeatSpace (style .getLeftPad ());
311+ final String indent = Util .repeatSpace (style .getIndent ());
312312 final Queue <String > result = new LinkedList <>();
313313 int wrapPos = 0 ;
314314 int nextPos ;
@@ -431,7 +431,7 @@ public void setMaxWidth(final int maxWidth) {
431431 */
432432 protected void writeColumnQueues (final List <Queue <String >> columnQueues , final List <TextStyle > styles ) throws IOException {
433433 boolean moreData = true ;
434- final String lPad = Util .createPadding (styleBuilder .get ().getLeftPad ());
434+ final String lPad = Util .repeatSpace (styleBuilder .get ().getLeftPad ());
435435 while (moreData ) {
436436 output .append (lPad );
437437 moreData = false ;
@@ -440,7 +440,7 @@ protected void writeColumnQueues(final List<Queue<String>> columnQueues, final L
440440 final Queue <String > columnQueue = columnQueues .get (i );
441441 final String line = columnQueue .poll ();
442442 if (Util .isEmpty (line )) {
443- output .append (Util .createPadding (style .getMaxWidth () + style .getLeftPad ()));
443+ output .append (Util .repeatSpace (style .getMaxWidth () + style .getLeftPad ()));
444444 } else {
445445 output .append (line );
446446 }
0 commit comments