lineBreak

DEFAULT: 0 (i.e. disabled)

If greater than 0, when interval number of encoded characters have been output, the next encoded character will be preceded with the new line character \n. This is non-compliant with RFC 4648.

A great value is 64, and is what Default.Companion.config uses.

NOTE: This setting is ignored if isLenient is set to false.

e.g.

isLenient(enable = true)
lineBreak(interval = 0)
// JBSWY3DPEBLW64TMMQQQ====

isLenient(enable = true)
lineBreak(interval = 16)
// JBSWY3DPEBLW64TM
// MQQQ====

isLenient(enable = false)
lineBreak(interval = 16)
// JBSWY3DPEBLW64TMMQQQ====

See also