Projects
openEuler:Mainline
perl-Text-Tabs-Wrap
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 8
View file
_service:tar_scm:perl-Text-Tabs+Wrap.spec
Changed
@@ -1,6 +1,6 @@ Name: perl-Text-Tabs+Wrap -Version: 2021.0814 -Release: 2 +Version: 2023.0511 +Release: 1 Summary: Expand tabs and do simple line wrapping License: TTWL URL: https://metacpan.org/release/Text-Tabs%2BWrap @@ -52,6 +52,9 @@ %{_mandir}/man3/* %changelog +* Thu Jul 20 2023 xujing <xujing125@huawei.com> - 2023.0511-1 +- update version to 2023.0511 + * Mon Oct 24 2022 xujing <xujing125@huawei.com> - 2021.0814-2 - optimize the specfile
View file
_service:tar_scm:Text-Tabs+Wrap-2021.0814.tar.gz/CHANGELOG -> _service:tar_scm:Text-Tabs+Wrap-2023.0511.tar.gz/CHANGELOG
Changed
@@ -1,4 +1,27 @@ += 2023/05/11 + +Fixed bugtracker link + += 2023/05/10 + +Fix for a warning introduced in Text::Wrap in post-5.6 perls + += 2023/05/09 + +Minimum Perl version raised to 5.6.1 to reflect the existing situation + +Support for Perl 5.6 is now fully correct + +Fix for failure to wrap very long words with overflow. (RT #124024) +Thanks for the report to Andrew Beverley + +Fix for failure to handle combining marks at the start of line/string. (RT #148291) +Thanks for the report to Mario Paumann + +Correct handling of non-breaking spaces when wrapping. (RT #95823) +Requested by Kent Fredric, who is dearly missed + = 2021/08/14 Missing changelog entry
View file
_service:tar_scm:Text-Tabs+Wrap-2021.0814.tar.gz/MANIFEST -> _service:tar_scm:Text-Tabs+Wrap-2023.0511.tar.gz/MANIFEST
Changed
@@ -4,9 +4,12 @@ Makefile.PL MANIFEST README +t/124024.t +t/148291.t t/37000.t t/39548.t t/79766.t +t/95823.t t/belg4mit.t t/dandv.t t/fill.t
View file
_service:tar_scm:Text-Tabs+Wrap-2021.0814.tar.gz/META.json -> _service:tar_scm:Text-Tabs+Wrap-2023.0511.tar.gz/META.json
Changed
@@ -4,13 +4,13 @@ "David Muir Sharnoff <muir@idiom.org>" , "dynamic_config" : 0, - "generated_by" : "ExtUtils::MakeMaker version 7.1002, CPAN::Meta::Converter version 2.150005", + "generated_by" : "ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010", "license" : "unknown" , "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", - "version" : "2" + "version" : 2 }, "name" : "Text-Tabs+Wrap", "no_index" : { @@ -32,21 +32,21 @@ }, "runtime" : { "requires" : { - "perl" : "5.006" + "perl" : "5.006001" } } }, "release_status" : "stable", "resources" : { "bugtracker" : { - "web" : "https://github.com/ap/Text-Tabs/issues" + "web" : "https://rt.cpan.org/Public/Dist/Display.html?Name=Text-Tabs%2BWrap" }, "repository" : { "type" : "git", - "url" : "git://github.com/ap/Text-Tabs.git", + "url" : "https://github.com/ap/Text-Tabs.git", "web" : "https://github.com/ap/Text-Tabs" } }, - "version" : "2021.0814", - "x_serialization_backend" : "JSON::PP version 2.27300_01" + "version" : "2023.0511", + "x_serialization_backend" : "JSON::PP version 4.02" }
View file
_service:tar_scm:Text-Tabs+Wrap-2021.0814.tar.gz/META.yml -> _service:tar_scm:Text-Tabs+Wrap-2023.0511.tar.gz/META.yml
Changed
@@ -7,7 +7,7 @@ configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 0 -generated_by: 'ExtUtils::MakeMaker version 7.1002, CPAN::Meta::Converter version 2.150005' +generated_by: 'ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010' license: unknown meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -18,9 +18,9 @@ - t - inc requires: - perl: '5.006' + perl: '5.006001' resources: - bugtracker: https://github.com/ap/Text-Tabs/issues - repository: git://github.com/ap/Text-Tabs.git -version: '2021.0814' + bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=Text-Tabs%2BWrap + repository: https://github.com/ap/Text-Tabs.git +version: '2023.0511' x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
View file
_service:tar_scm:Text-Tabs+Wrap-2021.0814.tar.gz/Makefile.PL -> _service:tar_scm:Text-Tabs+Wrap-2023.0511.tar.gz/Makefile.PL
Changed
@@ -1,8 +1,9 @@ -use 5.006; use strict; use warnings; +use 5.006001; use strict; use warnings; use ExtUtils::MakeMaker; -my $u = 'github.com/ap/Text-Tabs'; +my $sc = q<https://github.com/ap/Text-Tabs>; +my $bt = q<https://rt.cpan.org/Public/Dist/Display.html?Name=Text-Tabs%2BWrap>; WriteMakefile( 'NAME' => 'Text::Wrap', @@ -12,12 +13,12 @@ AUTHOR => 'David Muir Sharnoff <muir@idiom.org>', ( eval { ExtUtils::MakeMaker->VERSION(6.48) } ? ( - MIN_PERL_VERSION => '5.006', + MIN_PERL_VERSION => '5.006001', META_MERGE => { dynamic_config => 0, resources => { - repository => { type => 'git', url => "git://$u.git", web => "https://$u" }, - bugtracker => { web => "https://$u/issues" }, + repository => { type => 'git', url => "$sc.git", web => $sc }, + bugtracker => { web => $bt }, }, 'meta-spec' => { version => 2 }, }
View file
_service:tar_scm:Text-Tabs+Wrap-2021.0814.tar.gz/lib.modern/Text/Tabs.pm -> _service:tar_scm:Text-Tabs+Wrap-2023.0511.tar.gz/lib.modern/Text/Tabs.pm
Changed
@@ -6,7 +6,7 @@ our @EXPORT = qw( expand unexpand $tabstop ); -our $VERSION = '2021.0814'; +our $VERSION = '2023.0511'; our $SUBVERSION = 'modern'; # back-compat vestige our $tabstop = 8; @@ -25,7 +25,7 @@ $s .= " " x $pad; } $s .= $_; - $offs = () = /\PM/g; + $offs = /^\pM/ + ( () = /\PM/g ); } } push(@l, $s); @@ -48,7 +48,7 @@ @lines = split("\n", $x, -1); for $line (@lines) { $line = expand($line); - @e = split(/((?:\PM\pM*){$tabstop})/,$line,-1); + @e = split(/((?:\PM\pM*|^\pM+){$tabstop})/,$line,-1); $lastbit = pop(@e); $lastbit = '' unless defined $lastbit;
View file
_service:tar_scm:Text-Tabs+Wrap-2021.0814.tar.gz/lib.modern/Text/Wrap.pm -> _service:tar_scm:Text-Tabs+Wrap-2023.0511.tar.gz/lib.modern/Text/Wrap.pm
Changed
@@ -9,18 +9,22 @@ our @EXPORT = qw( wrap fill ); our @EXPORT_OK = qw( $columns $break $huge ); -our $VERSION = '2021.0814'; +our $VERSION = '2023.0511'; our $SUBVERSION = 'modern'; # back-compat vestige +BEGIN { eval sprintf 'sub REGEXPS_USE_BYTES () { %d }', scalar( pack('U*', 0x80) =~ /\xc2/ ) } + +my $brkspc = "\x{a0}\x{202f}" =~ /\s/ ? '^\x{a0}\x{202f}\S' : '\s'; + our $columns = 76; # <= screen width -our $break = '(?=\s)(?:\r\n|\PM\pM*)'; +our $break = '(?>\n|\r\n|'.$brkspc.'\pM*)'; our $huge = 'wrap'; # alternatively: 'die' or 'overflow' our $unexpand = 1; our $tabstop = 8; our $separator = "\n"; our $separator2 = undef; -sub _xlen { () = $_0 =~ /\PM/g } +sub _xlen { $_0 =~ /^\pM/ + ( () = $_0 =~ /\PM/g ) } use Text::Tabs qw(expand unexpand); @@ -49,17 +53,17 @@ pos($t) = 0; while ($t !~ /\G(?:$break)*\Z/gc) { - if ($t =~ /\G((?:(?!\n)\PM\pM*){0,$ll})($break|\n+|\z)/xmgc) { + if ($t =~ /\G((?>(?!\n)\PM\pM*|(?<!^\n)\pM+){0,$ll})($break|\n+|\z)/xmgc) { $r .= $unexpand ? unexpand($nl . $lead . $1) : $nl . $lead . $1; $remainder = $2; - } elsif ($huge eq 'wrap' && $t =~ /\G((?:(?!\n)\PM\pM*){$ll})/gc) { + } elsif ($huge eq 'wrap' && $t =~ /\G((?>(?!\n)\PM\pM*|(?<!^\n)\pM+){$ll})/gc) { $r .= $unexpand ? unexpand($nl . $lead . $1) : $nl . $lead . $1; $remainder = defined($separator2) ? $separator2 : $separator; - } elsif ($huge eq 'overflow' && $t =~ /\G((?:(?!\n)\PM\pM*)*?)($break|\n+|\z)/xmgc) { + } elsif ($huge eq 'overflow' && $t =~ /\G(^\n*?)(?!(?<!^\n)\pM)($break|\n+|\z)/xmgc) { $r .= $unexpand ? unexpand($nl . $lead . $1) : $nl . $lead . $1; @@ -87,7 +91,10 @@ $r .= $lead . substr($t, pos($t), length($t) - pos($t)) if pos($t) ne length($t); - return $r; + # the 5.6 regexp engine ignores the UTF8 flag, so using capture buffers acts as an implicit _utf8_off + # that means on 5.6 we now have to manually set UTF8=on on the output if the input had it, for which + # we extract just the UTF8 flag from the input and check if it forces chr(0x80) to become multibyte + return REGEXPS_USE_BYTES && (substr($t,0,0)."\x80") =~ /\xc2/ ? pack('U0a*', $r) : $r; } sub fill
View file
_service:tar_scm:Text-Tabs+Wrap-2023.0511.tar.gz/t/124024.t
Added
@@ -0,0 +1,13 @@ +use strict; use warnings; + +BEGIN { require './t/lib/ok.pl' } +use Text::Wrap; + +print "1..3\n"; + +$Text::Wrap::huge = 'overflow'; +my $in = "\x{300}" x 1_000_000; +my $out = eval { wrap('', '', $in) }; +ok( !$@ ) or diag( $@ ); +ok( $in eq $out ); +ok( length($in) == length($out) );
View file
_service:tar_scm:Text-Tabs+Wrap-2023.0511.tar.gz/t/148291.t
Added
@@ -0,0 +1,19 @@ +use strict; use warnings; + +BEGIN { require './t/lib/ok.pl' } +use Text::Wrap; + +print "1..4\n"; +my ( $in, $out ); + +$Text::Tabs::tabstop = 8; +$in = "\x{300}\t.\n\x{300}\t."; +$out = "\x{300} .\n\x{300} ."; +ok( Text::Tabs::expand($in) eq $out ); +ok( Text::Tabs::unexpand($out) eq $in ); + +$in = "\x{300} Taglia Unica\n\x{300} Taglia Unica"; +$out = "\x{300} Taglia Unica\n\x{300} Taglia Unica"; +my $got = eval { Text::Wrap::wrap( '', '', $in ) }; +ok( !$@ ) or diag( $@ ); +ok( $got eq $out );
View file
_service:tar_scm:Text-Tabs+Wrap-2023.0511.tar.gz/t/95823.t
Added
@@ -0,0 +1,17 @@ +use strict; use warnings; + +BEGIN { require './t/lib/ok.pl' } + +use Text::Wrap; + +print "1..2\n"; + +my $sentence = join "\x{a0}", qw( This sentence should never wrap. ); +$Text::Wrap::columns = 2 * ( length $sentence ) - 4; + +my $in = join ' ', ( $sentence ) x 10; +my $out = join "\n", ( $sentence ) x 10; +my $got = eval { wrap('', '', $in) }; + +ok( !$@ ) or diag( $@ ); +ok( $got eq $out ) or diag( $got );
View file
_service:tar_scm:Text-Tabs+Wrap-2021.0814.tar.gz/t/Tabs-ElCid.t -> _service:tar_scm:Text-Tabs+Wrap-2023.0511.tar.gz/t/Tabs-ElCid.t
Changed
@@ -1,7 +1,5 @@ use strict; use warnings FATAL => 'all'; -BEGIN { eval sprintf 'sub NEED_REPEATED_DECODE () { %d }', $ lt '5.008' } - use Text::Tabs; require bytes; @@ -125,7 +123,6 @@ $bad++ unless check($tab_count, $., "OLD", "TABS"); $_ = expand($_); - $_ = pack "U0a*", $_ if NEED_REPEATED_DECODE; $DATA$.{NEW}{DATA} = $_; @@ -142,7 +139,6 @@ $bad++ unless check($tab_count, $., "NEW", "TABS"); $_ = unexpand($_); - $_ = pack "U0a*", $_ if NEED_REPEATED_DECODE; if ($_ ne $DATA$.{OLD}{DATA}) { warn "expand/unexpand round-trip equivalency failed at line $.";
View file
_service:tar_scm:Text-Tabs+Wrap-2021.0814.tar.gz/t/Wrap-JLB.t -> _service:tar_scm:Text-Tabs+Wrap-2023.0511.tar.gz/t/Wrap-JLB.t
Changed
@@ -1,7 +1,5 @@ use strict; use warnings FATAL => 'all'; -BEGIN { eval sprintf 'sub NEED_REPEATED_DECODE () { %d }', $ lt '5.008' } - use Text::Wrap; $Text::Wrap::columns = 72; @@ -109,7 +107,6 @@ my $nl = "\n" x chomp; $_ = wrap("", "", $_) . $nl; - $_ = pack "U0a*", $_ if NEED_REPEATED_DECODE; $byte_count = bytes::length($_); $char_count = length();
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2