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:
parent
206c040ae9
commit
eb5a775a2d
@ -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>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user