Skip to contents

Given a long string, add line breaks "\<br\>" at specified intervals. Breaks are always added at the preceding instance of the separator. Function is used internally in enrichment_network_vis().

Usage

add_line_breaks(x, max_char = 50, sep = ",")

Arguments

x

character string

max_char

integer, add line breaks at least every max_char characters

sep

character after which to add line break

Value

string with additional \<br\> if necessary