Beispiel #1
0
 /**
  * Wrap the message to a specific length by splitting the message over multiple lines.
  *
  * <p>Uses {@link Str#wrapString(String, int)}
  *
  * <p>
  *
  * <p>A new line symbol '\n' will be added at the end of words that are too long. Words will never
  * be cut in half using this wrapping method even if they exceed the length.
  *
  * @param length The length used for wrapping.
  * @return This msg instance.
  */
 public Msg wrap(int length) {
   message = Str.wrapString(message, length);
   return this;
 }