Add support for multiple-line legend items in vertical (default) mode