adding paragraph handling to the svg drawer