def make_div(unit, length=<NUM_LIT>,<EOL>start='<STR_LIT>', end='<STR_LIT>',<EOL>literal_unit=False):
<EOL>if not literal_unit:<EOL><INDENT>unit = utils.reduce_to_unit(unit)<EOL><DEDENT>repeats = (length - len(start + end)) // len(unit)<EOL>return (start + unit * repeats + end)[<NUM_LIT:0>:length]<EOL>
Generate and return a custom divider.

:param unit: str containing a repeating unit
:param length: The maximum length (won't be exceeded) (default: 24)
:param start: optional starting string
:param end: optional ending string
:param literal_unit: if True will not try to break
unit down into smaller repeating subunits
:return: a custom created divider
:rtype: str

:Example:
custom_div = make_div(unit='=-', length=40, start='<', end='=>')
note:: The generated string will be terminated
at the specified length regardless
of whether all the input strings have been fully replicated.
A unit > 1 length may
not be able to be replicated to extend to the full length.
In this situation, the
string will be shorter than the specified length.
Example: unit of 10 characters and a specified length of
25 will contain 2 units for
a total length of 20 characters.