summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-02-17 17:42:59 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-02-17 17:42:59 +0000
commitebb9462d35b8e2e4f8f628bc4e3e7af9194b146a (patch)
tree9cfd82d828b08503cfc8e6653c8ee142c3792724
parent44d3ce20f589f12b64fe2f9e40734a9bea4663ed (diff)
downloadperl-ebb9462d35b8e2e4f8f628bc4e3e7af9194b146a.tar.gz
Upgrade to Pod::LaTeX 0.58
p4raw-id: //depot/perl@23976
-rw-r--r--lib/Pod/LaTeX.pm11
-rw-r--r--lib/Pod/t/pod2latex.t21
2 files changed, 21 insertions, 11 deletions
diff --git a/lib/Pod/LaTeX.pm b/lib/Pod/LaTeX.pm
index 95be1b301d..9d3a905258 100644
--- a/lib/Pod/LaTeX.pm
+++ b/lib/Pod/LaTeX.pm
@@ -33,7 +33,7 @@ use Carp;
use vars qw/ $VERSION %HTML_Escapes @LatexSections /;
-$VERSION = '0.56';
+$VERSION = '0.58';
# Definitions of =headN -> latex mapping
@LatexSections = (qw/
@@ -1454,7 +1454,7 @@ sub add_item {
my ($hunk1, $hunk2) = $self->_split_delimited( $paragraph, $maxlen );
# Print the first hunk
- $self->_output("\n\\item[$hunk1] ");
+ $self->_output("\n\\item[{$hunk1}] ");
# and the second hunk if it is defined
if ($hunk2) {
@@ -1851,8 +1851,9 @@ E<lt>mah@everybody.orgE<gt>, Marcel Grunauer
E<lt>marcel@codewerk.comE<gt>, Hugh S Myers
E<lt>hsmyers@sdragons.comE<gt>, Peter J Acklam
E<lt>jacklam@math.uio.noE<gt>, Sudhi Herle E<lt>sudhi@herle.netE<gt>,
-Ariel Scolnicov E<lt>ariels@compugen.co.ilE<gt> and
-Adriano Rodrigues Ferreira E<lt>ferreira@triang.com.brE<gt>.
+Ariel Scolnicov E<lt>ariels@compugen.co.ilE<gt>,
+Adriano Rodrigues Ferreira E<lt>ferreira@triang.com.brE<gt> and
+R. de Vries E<lt>r.de.vries@dutchspace.nlE<gt>.
=head1 COPYRIGHT
@@ -1866,7 +1867,7 @@ it under the same terms as Perl itself.
=head1 REVISION
-$Id: LaTeX.pm,v 1.18 2004/03/08 02:22:43 timj Exp $
+$Id: LaTeX.pm,v 1.19 2004/12/30 01:40:44 timj Exp $
=end __PRIVATE__
diff --git a/lib/Pod/t/pod2latex.t b/lib/Pod/t/pod2latex.t
index 79543cc2ef..965c9ccaff 100644
--- a/lib/Pod/t/pod2latex.t
+++ b/lib/Pod/t/pod2latex.t
@@ -1,4 +1,4 @@
-
+#!perl
# Test that Pod::LaTeX works
# This test relies on the DATA filehandle
# DATA contains the latex that is used for comparison
@@ -11,7 +11,7 @@
use Test;
use strict;
-BEGIN { plan tests => 172 }
+BEGIN { plan tests => 177 }
use Pod::LaTeX;
@@ -168,7 +168,7 @@ Test description list with long lines
\begin{description}
-\item[Some short text] \mbox{}
+\item[{Some short text}] \mbox{}
Some additional para.
@@ -185,20 +185,25 @@ Second item
\end{itemize}
-\item[some longer text than that] \mbox{}
+\item[{some longer text than that}] \mbox{}
and again.
-\item[this text is even longer and greater than] \textbf{40 characters}
+\item[{this text is even longer and greater than}] \textbf{40 characters}
Some more content for the item.
-\item[this is some text with \textit{something across}] \textbf{the 40 char boundary}
+\item[{this is some text with \textit{something across}}] \textbf{the 40 char boundary}
This is item content.
+
+\item[{square [ bracket in item}] \mbox{}
+
+Square bracket content
+
\end{description}
@@ -340,6 +345,10 @@ Some more content for the item.
This is item content.
+=item square [ bracket in item
+
+Square bracket content
+
=back
And this should be an enumerated list without any cruft after the numbers or additional numbers at all.