mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 00:13:12 +03:00
Supports translating /n into new <p> tags
This commit is contained in:
parent
6289ef9727
commit
b96df813aa
File diff suppressed because one or more lines are too long
@ -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>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user