Subject: | [Patch] POD nits |
The attached patch (against 0.73) fixes some POD, which renders wrong,
at least at search.cpan.org.
Please note the add whitespace too:
$self->{'DAT'} => $self->{' DAT'}
Subject: | pod.patch |
diff --git a/lib/PDF/API2/Basic/TTF/Glyf.pm b/lib/PDF/API2/Basic/TTF/Glyf.pm
index ed916b5..552035f 100644
--- a/lib/PDF/API2/Basic/TTF/Glyf.pm
+++ b/lib/PDF/API2/Basic/TTF/Glyf.pm
@@ -33,7 +33,7 @@ PDF::API2::Basic::TTF::Glyf - The Glyf data table
=head1 DESCRIPTION
This is a stub table. The real data is held in the loca table. If you want to get a glyf
-look it up in the loca table as C<$f->{'loca'}{'glyphs'}[$num]>. It won't be here!
+look it up in the loca table as C<< $f->{'loca'}{'glyphs'}[$num] >>. It won't be here!
The difference between reading this table as opposed to the loca table is that
reading this table will cause updated glyphs to be written out rather than just
diff --git a/lib/PDF/API2/Basic/TTF/Glyph.pm b/lib/PDF/API2/Basic/TTF/Glyph.pm
index 14a6881..5df61d8 100644
--- a/lib/PDF/API2/Basic/TTF/Glyph.pm
+++ b/lib/PDF/API2/Basic/TTF/Glyph.pm
@@ -58,7 +58,7 @@ when the whole glyph is read (via C<read_dat>):
=item instLen
Number of bytes in the hinting instructions (Warning this variable is deprecated,
-use C<length($g->{'hints'})> instead).
+use C<< length($g->{'hints'}) >> instead).
=item hints
@@ -502,7 +502,7 @@ sub XML_element
=head2 $g->update
-Generates a C<$self->{'DAT'}> from the internal structures, if the data has
+Generates a C<< $self->{' DAT'} >> from the internal structures, if the data has
been read into structures in the first place. If you are building a glyph
from scratch you will need to set the instance variable C<' read'> to 2 (or
something > 1) for the update to work.