File Coverage

blib/lib/Perl6/Pod/FormattingCode/U.pm
Criterion Covered Total %
statement 15 25 60.0
branch n/a
condition n/a
subroutine 5 7 71.4
pod 2 2 100.0
total 22 34 64.7


line stmt bran cond sub pod time code
1             package Perl6::Pod::FormattingCode::U;
2              
3             =pod
4              
5             =head1 NAME
6              
7             Perl6::Pod::FormattingCode::U - Unusual text
8              
9             =head1 SYNOPSIS
10              
11             =para
12             the contained text is U
13              
14             =head1 DESCRIPTION
15              
16             The CE> formatting code specifies that the contained text is
17             B or distinctive; that it is of I. Typically
18             such content would be rendered in an underlined style.
19              
20             =cut
21              
22 3     3   15 use warnings;
  3         5  
  3         80  
23 3     3   14 use strict;
  3         5  
  3         193  
24 3     3   15 use Data::Dumper;
  3         4  
  3         128  
25 3     3   14 use Perl6::Pod::FormattingCode;
  3         12  
  3         69  
26 3     3   14 use base 'Perl6::Pod::FormattingCode';
  3         57  
  3         605  
27             our $VERSION = '0.01';
28              
29             =head2 to_xhtml
30              
31             U
32              
33             Render xhtml:
34              
35             sample
36              
37             Use css style for underline style:
38              
39             .unusual {
40             font-style: normal;
41             text-decoration: underline;
42             }
43              
44             =cut
45              
46             sub to_xhtml {
47 0     0 1   my ( $self, $to ) = @_;
48 0           my $w = $to->w;
49 0           $w->raw('');
50 0           $to->visit_childs($self);
51 0           $w->raw('');
52             }
53              
54             =head2 to_docbook
55              
56             U
57              
58             Render to
59              
60             test
61              
62             =cut
63             #http://old.nabble.com/docbook-with-style-info-td25857763.html
64              
65             sub to_docbook {
66 0     0 1   my ( $self, $to ) = @_;
67 0           my $w = $to->w;
68 0           $w->raw('');
69 0           $to->visit_childs($self);
70 0           $w->raw('');
71              
72             }
73              
74             1;
75             __END__