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 authored and GitHub committed 2020-12-23 15:20:57 +03:00
1 parent 206c040ae9
commit eb5a775a2d
1 file changed
+2
@@ -195,6 +195,8 @@ export class PodLogList extends React.Component<Props> {
{contents.length > 1 ? contents : (
<span dangerouslySetInnerHTML={{ __html: ansiToHtml(item) }} />
)}
{/* For preserving copy-paste experience and keeping line breaks */}
<br />
</div>
);
};