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,13 +142,14 @@ export class Message extends Component {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
let text = letter.text.split ('\n').map ((item, i) => <p className='f7 lh-copy v-top' key={i}>{item}</p>);
|
||||||
return (
|
return (
|
||||||
<p className='f7 lh-copy v-top'>
|
<section>
|
||||||
{letter.text}
|
{text}
|
||||||
</p>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
Loading…
Reference in New Issue
Block a user