Supports translating /n into new <p> tags

This commit is contained in:
~litpub 2020-02-18 22:45:24 -08:00
parent 6289ef9727
commit b96df813aa
2 changed files with 6 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -142,10 +142,11 @@ export class Message extends Component {
);
}
else {
let text = letter.text.split ('\n').map ((item, i) => <p className='f7 lh-copy v-top' key={i}>{item}</p>);
return (
<p className='f7 lh-copy v-top'>
{letter.text}
</p>
<section>
{text}
</section>
);
}
}