diff --git a/app/docker/components/log-viewer/logViewerController.js b/app/docker/components/log-viewer/logViewerController.js index 93fa811c5..2c8320664 100644 --- a/app/docker/components/log-viewer/logViewerController.js +++ b/app/docker/components/log-viewer/logViewerController.js @@ -24,13 +24,13 @@ angular.module('portainer.docker').controller('LogViewerController', [ }; this.copy = function () { - clipboard.copyText(this.state.filteredLogs.map((log) => log.line)); + clipboard.copyText(this.state.filteredLogs.map((log) => log.line).join('')); $('#refreshRateChange').show(); $('#refreshRateChange').fadeOut(2000); }; this.copySelection = function () { - clipboard.copyText(this.state.selectedLines); + clipboard.copyText(this.state.selectedLines.join('')); $('#refreshRateChange').show(); $('#refreshRateChange').fadeOut(2000); };