1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Preserving line breaks when copiyng logs (#1851)

* Adding line break after log each log line

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Adding comment for line break

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2020-12-23 15:20:57 +03:00 committed by GitHub
parent 206c040ae9
commit eb5a775a2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,6 +195,8 @@ export class PodLogList extends React.Component<Props> {
{contents.length > 1 ? contents : ( {contents.length > 1 ? contents : (
<span dangerouslySetInnerHTML={{ __html: ansiToHtml(item) }} /> <span dangerouslySetInnerHTML={{ __html: ansiToHtml(item) }} />
)} )}
{/* For preserving copy-paste experience and keeping line breaks */}
<br />
</div> </div>
); );
}; };