Skip to content

Commit

Permalink
Add page_progression_direction property and make proper xml attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
gugod committed Feb 24, 2013
1 parent 356ebae commit 61ecc56
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/EBook/EPUB/Spine.pm
Expand Up @@ -26,6 +26,12 @@ use Moose;
use EBook::EPUB::Spine::Itemref;

has toc => ( isa => 'Str', is => 'rw' );

has page_progression_direction => (
isa => "Str",
is => "rw"
);

has itemrefs => (
traits => ['Array'],
is => 'ro',
Expand All @@ -41,6 +47,7 @@ sub encode
my ($self, $writer) = @_;
$writer->startTag("spine",
toc => $self->toc,
$self->page_progression_direction ? ( "page-progression-direction" => $self->page_progression_direction ) : (),
);

foreach my $itemref (@{$self->itemrefs()}) {
Expand Down

0 comments on commit 61ecc56

Please sign in to comment.