redotvideo / revideo

Create Videos with Code
https://re.video
MIT License
2.58k stars 88 forks source link

textWrap={true} doesn't respect linebreaks #277

Open justusmattern27 opened 2 months ago

justusmattern27 commented 2 months ago

When using textWrap={true} inside a <Txt/> node, linebreaks set with \n are simply ignored. To reproduce, add something like this to your scene:

view.add(<Txt text="This is an example text with\na linebreak" textWrap={true} />);