> the /a "flag" can also be used to limit the character class to ASCII
> space characters:
>  
> -  $content =~ s/^\s*//;
> -  $content =~ s/\s*$//;
> +  $content =~ s/^\s*//a;
> +  $content =~ s/\s*$//a;

This looks good, thanks.  However, it is probably necessary to filter
out the ideographic space (U+3000), too.

Masamichi-san, what do you think?  Here is a link to the complete
conversation:

  https://lists.gnu.org/archive/html/bug-texinfo/2022-01/msg00005.html

Other CJK users, please also comment!


    Werner

Reply via email to