-
Notifications
You must be signed in to change notification settings - Fork 559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PATCH] Correct nested pod bullets #12678
Comments
From @SmylersThis is a bug report for perl from Smylers@stripey.com, From e161b1023da0a980dc9e74ffa37e8dd2e7d9c5c0 Mon Sep 17 00:00:00 2001 pod/perl5177delta.pod | 10 +++++----- Inline Patchdiff --git a/pod/perl5177delta.pod b/pod/perl5177delta.pod
index 78d6ff3..70129cd 100644
--- a/pod/perl5177delta.pod
+++ b/pod/perl5177delta.pod
@@ -365,23 +365,23 @@ _charnames from loading via C<$INC{'_charnames.pm'}++>.
A number of bugs related to assigning a list to hash have been fixed. Many of
these involve lists with repeated keys like C<(1, 1, 1, 1)>.
-=over 8
+=over 4
-=item -
+=item *
The expression C<scalar(%h = (1, 1, 1, 1))> now returns C<4>, not C<2>.
-=item -
+=item *
The return value of C<%h = (1, 1, 1)> in list context was wrong. Previously
this would return C<(1, undef, 1)>, now it returns C<(1, undef)>.
-=item -
+=item *
Perl now issues the same warning on C<($s, %h) = (1, {})> as it does for
C<(%h) = ({})>, "Reference found where even-sized list expected".
-=item -
+=item *
A number of additional edge cases in list assignment to hashes were
corrected. For more details see commit 23b7025ebc.
--
Flags: Site configuration information for perl 5.14.2: Configured by Debian Project at Tue Nov 27 00:50:56 UTC 2012. Summary of my perl5 (revision 5 version 14 subversion 2) configuration: Locally applied patches: @INC for perl 5.14.2: Environment for perl 5.14.2: |
From @SmylersSorry, I messed the subject line up in invoking perlbug; now fixed in RT. Also, I realized the problem this patch fixes may not be obvious.C<=item In perldoc's manpage-like output C<=item -> looks like it generates a But in the HTML output named items are conveyed with <dl> elements, with |
From @nwc10On Mon, Dec 31, 2012 at 12:19:52AM -0800, Smylers wrote:
This is not a "reject this patch" (far from it) 1) Without this change, what do Pod formatters do differently, and is it 2) Assuming the answer to (1) is some form of wrongness, should we note this 3) Is it possible to get the Pod checker to spot this? Nicholas Clark |
The RT System itself - Status changed from 'new' to 'open' |
From @SmylersOn Mon Dec 31 02:21:40 2012, nicholas wrote:
Hi. Have you seen the clarification I added to the bug afterwards? (My Without the change the document has the wrong semantics, meaning 'this Its HTML rendering on MetaCpan looked sufficiently odd that I bothered
It isn't really a matter of style; it's simple correctness: C<=item *> Has anybody else encountered this issue? If this is the only occurrence However, having nested bullets being distinguished from top-level
Note that C<=item -> is used correctly in perldebug, describing what So to avoid flagging genuine uses, a check should be on C<=item -> used Cheers Smylers |
From @khwilliamsonThanks, applied as -- |
@khwilliamson - Status changed from 'open' to 'resolved' |
@khwilliamson - Status changed from 'resolved' to 'open' |
From @khwilliamsonI carelessly resolved this instead of the ticket I meant to resolve, so On Sat Jan 26 10:03:42 2013, khw wrote: -- |
From @khwilliamsonIf you attach your patch to an email instead of inlining it, I will |
From @SmylersKarl Williamson via RT writes:
Attached. Should I have done that in the first place then? I attempted to follow Smylers |
From @Smylers0001-Correct-nested-pod-bullets.patchFrom e161b1023da0a980dc9e74ffa37e8dd2e7d9c5c0 Mon Sep 17 00:00:00 2001
From: Smylers <[email protected]>
Date: Mon, 31 Dec 2012 07:23:28 +0000
Subject: [PATCH] Correct nested pod bullets
---
pod/perl5177delta.pod | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/pod/perl5177delta.pod b/pod/perl5177delta.pod
index 78d6ff3..70129cd 100644
--- a/pod/perl5177delta.pod
+++ b/pod/perl5177delta.pod
@@ -365,23 +365,23 @@ _charnames from loading via C<$INC{'_charnames.pm'}++>.
A number of bugs related to assigning a list to hash have been fixed. Many of
these involve lists with repeated keys like C<(1, 1, 1, 1)>.
-=over 8
+=over 4
-=item -
+=item *
The expression C<scalar(%h = (1, 1, 1, 1))> now returns C<4>, not C<2>.
-=item -
+=item *
The return value of C<%h = (1, 1, 1)> in list context was wrong. Previously
this would return C<(1, undef, 1)>, now it returns C<(1, undef)>.
-=item -
+=item *
Perl now issues the same warning on C<($s, %h) = (1, {})> as it does for
C<(%h) = ({})>, "Reference found where even-sized list expected".
-=item -
+=item *
A number of additional edge cases in list assignment to hashes were
corrected. For more details see commit 23b7025ebc.
--
1.7.10.4
|
From @khwilliamsonThanks, applied as |
@khwilliamson - Status changed from 'open' to 'resolved' |
From @khwilliamsonOn 01/26/2013 01:27 PM, Smylers wrote:
It's a lot more convenient to have an attached patch. I don't know what |
Migrated from rt.perl.org#116252 (status was 'resolved')
Searchable as RT116252$
The text was updated successfully, but these errors were encountered: