Skip to content

Commit

Permalink
Recognise the =encoding POD directive.
Browse files Browse the repository at this point in the history
TODO: actually take heed of it.  At least now, we don't crash when we see it,
and we rememeber the encoding given, so that we can do something with it later.
  • Loading branch information
bigpresh committed Dec 9, 2010
1 parent 5c0d16e commit 2aebcda
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions lib/Pod/Readme.pm
Expand Up @@ -264,6 +264,32 @@ sub cmd_for {
}
}

=begin internal
=over
=item cmd_encoding
Handle =encoding directive.
TODO: actually change the encoding of the output file.
=back
=end internal
=cut

sub cmd_encoding {
my $self = shift;
my $encoding = (split /\s+/, shift)[0];
if ($self->{_encoding}) {
die "=encoding option must occur only once!";
}
$self->{_encoding} = $encoding;
# TODO: Need to actually do something with this option
# At least recognising it and not dying is a step in the right direction.
}

=begin internal
Expand Down

0 comments on commit 2aebcda

Please sign in to comment.