Improve rendering of multi-line %exp messages

This commit is contained in:
Fang 2019-07-31 13:35:55 +02:00
parent 1ce3d5af7a
commit e5f0e136e9
No known key found for this signature in database
GPG Key ID: EB035760C1BBA972

View File

@ -86,8 +86,8 @@ export class Message extends Component {
renderExp(expression, result) {
return (<>
<p><code># {expression}</code></p>
<p><code>{result[0]}</code></p>
<p><pre className="clamp-attachment">{expression}</pre></p>
<p><pre className="clamp-attachment">{result[0].join('\n')}</pre></p>
</>);
}