line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#=============================================================================== |
2
|
|
|
|
|
|
|
# |
3
|
|
|
|
|
|
|
# DESCRIPTION: |
4
|
|
|
|
|
|
|
# |
5
|
|
|
|
|
|
|
# AUTHOR: Aliaksandr P. Zahatski, |
6
|
|
|
|
|
|
|
#=============================================================================== |
7
|
|
|
|
|
|
|
package Perl6::Pod::Block::output; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=pod |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 NAME |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
Perl6::Pod::Block::output - handle =output block |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 SYNOPSIS |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=begin output |
18
|
|
|
|
|
|
|
Name: Baracus, B.A. |
19
|
|
|
|
|
|
|
Rank: Sgt |
20
|
|
|
|
|
|
|
Serial: 1PTDF007 |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Do you want additional personnel details? K |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Height: 180cm/5'11" |
25
|
|
|
|
|
|
|
Weight: 104kg/230lb |
26
|
|
|
|
|
|
|
Age: 49 |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
Print? K |
29
|
|
|
|
|
|
|
=end output |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 DESCRIPTION |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
The =output block is used to specify pre-formatted terminal or file output which should also be rendered without rejustification or whitespace-squeezing. |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Export: |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
* to docbook as B element (http://www.docbook.org/tdg/en/html/screen.html) |
38
|
|
|
|
|
|
|
* to html(http://www.w3.org/TR/html401/struct/text.html#edef-SAMP): |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=cut |
43
|
|
|
|
|
|
|
|
44
|
3
|
|
|
3
|
|
16
|
use warnings; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
85
|
|
45
|
3
|
|
|
3
|
|
16
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
61
|
|
46
|
3
|
|
|
3
|
|
14
|
use Perl6::Pod::Utl; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
55
|
|
47
|
3
|
|
|
3
|
|
15
|
use Perl6::Pod::Block; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
59
|
|
48
|
3
|
|
|
3
|
|
14
|
use base 'Perl6::Pod::Block'; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
739
|
|
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__ |