Raphael.Export icon indicating copy to clipboard operation
Raphael.Export copied to clipboard

Multiline Text ('\n) and Raphael.Export

Open hezhez opened this issue 14 years ago • 5 comments

Hi again,

I'm trying to export paper.text with multiline, and when i exports it so SVG it comes out as one line,

Do you have any idea how to fix it ?

I appreciate all your help,

BR, hez

hezhez avatar Jan 21 '12 18:01 hezhez

Thanks hez. I've applied a fix although I'm not sure how accurate it is. Can you try it out and report back?

AliasIO avatar Jan 22 '12 08:01 AliasIO

Sorry for the late respond, just so u know, im a huge fan of ur work..

The fix works great, thanks !!

hezhez avatar Jan 25 '12 21:01 hezhez

Hi

Me too facing the same problem, with the latest version.

Trying to export the raphael paper having a text element with '\n' or '\u000a', and when I export it to SVG it comes out in a single line,

techhunter avatar Oct 19 '12 11:10 techhunter

I applied a fix for newlines, you should be able to use \n again.

AliasIO avatar Oct 30 '12 08:10 AliasIO

I am still getting the same issue with '\n' in my text element. When it exports it does creates two elements for '\n' but their x and y coordinates still remain same so the splitted text overlaps each other.

nik10-mah avatar Jun 14 '13 06:06 nik10-mah