Render new line char in legend items

Support new line char '\n' in legend items
Related issue #49