Skip to content

Commit 4b237e4

Browse files
authored
show an example of the deprecated method
1 parent fc24faf commit 4b237e4

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

doc/Language/tables.pod6

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,20 @@ take out trash
123123
=end table
124124
=end code
125125
126-
Note that the current practice of putting the caption in the C<config> hash
127-
is deprecated. The practice will generate a warning in the upcoming version
128-
C<6.d>, and it will raise an exception in version C<6.e>.
126+
Although not a good practice, currently there is in use an alternate
127+
method of defining a caption as shown in this example:
128+
129+
=begin code :skip-test
130+
=begin table :config{caption => "My Tasks"}
131+
mow lawn
132+
take out trash
133+
=end table
134+
135+
Note the alternative method of putting the caption in the C<config> hash
136+
was necessary before the C<:caption> method was implemented, but that
137+
method is now considered to be deprecated. The practice will generate a
138+
warning in the upcoming version C<6.d>, and it will raise an exception in
139+
version C<6.e>.
129140
130141
=head1 Good Tables
131142

0 commit comments

Comments
 (0)