diff --git a/lib/logic/models/console_log.dart b/lib/logic/models/console_log.dart index 80fb6240..6d982758 100644 --- a/lib/logic/models/console_log.dart +++ b/lib/logic/models/console_log.dart @@ -33,7 +33,7 @@ sealed class ConsoleLog { /// data available for copy in dialog String? get shareableData => '$title\n' - '$content'; + '{\n$content\n}'; static final DateFormat _formatter = DateFormat('hh:mm:ss'); String get timeString => _formatter.format(time); diff --git a/lib/ui/pages/more/console/console_log_item_dialog.dart b/lib/ui/pages/more/console/console_log_item_dialog.dart index 686eec77..addd8ef9 100644 --- a/lib/ui/pages/more/console/console_log_item_dialog.dart +++ b/lib/ui/pages/more/console/console_log_item_dialog.dart @@ -112,7 +112,7 @@ class ConsoleItemDialog extends StatelessWidget { // A button to copy the request to the clipboard if (log.shareableData?.isNotEmpty ?? false) TextButton( - onPressed: () => PlatformAdapter.setClipboard(log.content), + onPressed: () => PlatformAdapter.setClipboard(log.shareableData!), child: Text('console_page.copy'.tr()), ), // close dialog