Permalink
Browse files

Nicer warning for =item type mismatch.

  • Loading branch information...
1 parent 8f5efde commit b39e7e30ed090c69a93b44b098781df1df274ffb @theory committed Feb 16, 2013
Showing with 5 additions and 2 deletions.
  1. +3 −0 ChangeLog
  2. +2 −2 lib/Pod/Simple/BlackBox.pm
View
@@ -3,6 +3,9 @@
* Release 3.25
+ Improved the warning when "=item" types mismatch within one
+ "=over"/"=back" block.
+
2013-02-14 David E. Wheeler <david@justatheory.org>
* Release 3.24
@@ -663,7 +663,7 @@ sub _ponder_paragraph_buffer {
} elsif($item_type eq 'number' or $item_type eq 'bullet') {
$self->whine(
$para->[1]{'start_line'},
- "Expected text matching /\\s+[^\\*\\d]/ after '=item'"
+ "Expected text after =item, not a $item_type"
);
# Undo our clobbering:
push @$para, $para->[1]{'~orig_content'};
@@ -1273,7 +1273,7 @@ sub _ponder_item {
} elsif($item_type eq 'number' or $item_type eq 'bullet') {
$self->whine(
$para->[1]{'start_line'},
- "Expected text matching /\\s+[^\\*\\d]/ after '=item'"
+ "Expected text after =item, not a $item_type"
);
# Undo our clobbering:
push @$para, $para->[1]{'~orig_content'};

0 comments on commit b39e7e3

Please sign in to comment.