0

I would like to add a "\n" in a ractive-tooltip

I tried differente possibilities like "\n", "& nbsp;", "< br/>".... but nothing works for me...

I want something like this:

"Line 1: text1,

Line 2: text2,

Line 3: text3"

and i get this:

"Line 1: text1, Line 2: text2, Line 3: text3"

Can someone help me with that?

Thanks in advance!

1 Answers1

0

ractive-tooltip uses element.textContent to add the text. It doesn't look like it was designed to do newlines. However, there are ways to force newlines on content added via element.textContent.

Joseph
  • 117,725
  • 30
  • 181
  • 234