From 3340589207e35a80dc790cb45cbbe322f580e9c4 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Thu, 23 Mar 2023 17:56:40 -0700 Subject: [PATCH] applets/unicode.pl: keep newlines for pasting; increase search limit --- applets/unicode.pl | 6 ++---- lib/PBot/VERSION.pm | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/applets/unicode.pl b/applets/unicode.pl index ecd3dad8..73d154cd 100755 --- a/applets/unicode.pl +++ b/applets/unicode.pl @@ -30,11 +30,9 @@ my $result; if ($args =~ /^u\+/i) { $result = `unicode --color=off \Q$args\E`; } elsif ($search) { - $result = `unicode -r --color=off \Q$args\E --format 'U+{ordc:04X} {pchar} {name}\n'`; + $result = `unicode -r --max=100 --color=off \Q$args\E --format 'U+{ordc:04X} {pchar} {name};\n'`; } else { - $result = `unicode -s --color=off \Q$args\E --format 'U+{ordc:04X} ({utf8}) {pchar} {name} Category: {category} ({category_desc}) {opt_unicode_block}{opt_unicode_block_desc}{mirrored_desc}{opt_combining}{combining_desc}{opt_decomp}{decomp_desc}'`; + $result = `unicode -s --color=off \Q$args\E --format 'U+{ordc:04X} ({utf8}) {pchar} {name} Category: {category} ({category_desc}) {opt_unicode_block}{opt_unicode_block_desc}{mirrored_desc}{opt_combining}{combining_desc}{opt_decomp}{decomp_desc};\n'`; } -$result = join '; ', split /\n+/, $result; - print "$result\n"; diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index 23869a25..ebb33e2b 100644 --- a/lib/PBot/VERSION.pm +++ b/lib/PBot/VERSION.pm @@ -25,7 +25,7 @@ use PBot::Imports; # These are set by the /misc/update_version script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 4638, + BUILD_REVISION => 4639, BUILD_DATE => "2023-03-23", };