File Coverage

blib/lib/Perl6/Pod/Block/input.pm
Criterion Covered Total %
statement 12 22 54.5
branch n/a
condition n/a
subroutine 4 6 66.6
pod 0 2 0.0
total 16 30 53.3


line stmt bran cond sub pod time code
1             #===============================================================================
2             #
3             # DESCRIPTION: =input block
4             #
5             # AUTHOR: Aliaksandr P. Zahatski,
6             #===============================================================================
7              
8             package Perl6::Pod::Block::input;
9              
10             =pod
11              
12             =head1 NAME
13              
14             Perl6::Pod::Block::input - handle =input block
15              
16             =head1 SYNOPSIS
17              
18             =begin output
19             Name: Baracus, B.A.
20             Rank: Sgt
21             Serial: 1PTDF007
22              
23             Do you want additional personnel details? K
24              
25             Height: 180cm/5'11"
26             Weight: 104kg/230lb
27             Age: 49
28              
29             Print? K
30             =end output
31              
32             =head1 DESCRIPTION
33              
34             The =input block is used to specify pre-formatted keyboard input, which should be rendered without rejustification or squeezing of whitespace.
35              
36             Export:
37              
38             * to docbook as B element (L)
39             * to html (L):
40            
 
41            
42              
43             =cut
44              
45 3     3   15 use warnings;
  3         6  
  3         80  
46 3     3   16 use strict;
  3         6  
  3         59  
47 3     3   13 use Perl6::Pod::Block;
  3         5  
  3         64  
48 3     3   15 use base 'Perl6::Pod::Block';
  3         6  
  3         736  
49             our $VERSION = '0.01';
50              
51             sub to_xhtml {
52 0     0 0   my ( $self, $to ) = @_;
53 0           $to->w->raw('
'); 
54             $self->{content} =
55 0           Perl6::Pod::Utl::parse_para( $self->childs->[0] );
56 0           $to->visit_childs($self);
57 0           $to->w->raw('');
58             }
59              
60             sub to_docbook {
61 0     0 0   my ( $self, $to ) = @_;
62 0           $to->w->raw('');
63             $self->{content} =
64 0           Perl6::Pod::Utl::parse_para( $self->childs->[0] );
65 0           $to->visit_childs($self);
66 0           $to->w->raw('');
67             }
68              
69             1;
70              
71             __END__