From 97d961d4c5c684fc5079654c025b2e1c8776501f Mon Sep 17 00:00:00 2001 From: Bernhard <90285552+4gwe@users.noreply.github.com> Date: Sun, 2 Mar 2025 16:06:52 +0100 Subject: [PATCH] fix for display problem in pspm_display --- src/pspm_display.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pspm_display.m b/src/pspm_display.m index a049472a..652d0124 100644 --- a/src/pspm_display.m +++ b/src/pspm_display.m @@ -1066,6 +1066,14 @@ function update_summary_list (handles) channel_list_full(strcmp(targeted_channel_reference, ... {channel_type_reference_list.type})); targeted_channel_display = targeted_channel_display{1,1}; + + splitArray = strsplit(targeted_channel_display, ' '); + if numel(splitArray) > 3 && length(targeted_channel_display) > 23 + splitArray{end-1} = [splitArray{end-1}, newline, splitArray{end}]; + splitArray(end) = []; + targeted_channel_display = strjoin(splitArray, ' '); + end + string_channel_list = [string_channel_list, ... num2str(i_channel), ' ', ... targeted_channel_display, newline];