blib/lib/Docbook/Convert/Tag.pm untested

filter: Statementstmt 0.0% 0 / 30 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 41 CC 1 SCAR 6.9
CC
1
Cov
0%
command
2.0
para
2.0
BEGIN
2.0
CRAP 2.0
1 #
2 # This file is part of Docbook::Convert.
3 #
4 # This software is copyright (c) 2026 by Andrew Speer <andrew.speer@isolutions.com.au>.
5 #
6 # This is free software; you can redistribute it and/or modify it under
7 # the same terms as the Perl 5 programming language system itself.
8 #
9 # Full license text is available at:
10 #
11 # <http://dev.perl.org/licenses/>
12 #
13  
14  
15 #
16 #
17 package Docbook::Convert::Tag;
18  
19  
20 # Pragma
21 #
22 use strict qw(vars);
23 use vars qw($VERSION $AUTOLOAD);
24 use warnings;
25 no warnings qw(uninitialized);
26  
27  
28 # External modules
29 #
30 #use Docbook::Convert::Markdown::Util;
31 use Docbook::Convert::Constant;
32 use Data::Dumper;
33  
34  
35 # Inherit Base functions (find_node etc.)
36 #
37 use base Docbook::Convert::Base;
38  
39  
40 # Version information in a format suitable for CPAN etc. Must be
41 # all on one line
42 #
43 $VERSION='1.012';
44  
45  
46 # Make synonyms
47 #
48 #&create_tag_synonym;
49  
50  
51 # All done, init finished
52 #
53 1;
54  
55  
56 #===================================================================================================
57  
58  
59 sub command {
60 my ($self, $data_ar)=@_;
61 my $text=$self->pull_node_text($data_ar, $NULL);
62 return $self->_code($text);
63  
64 #return &_code();
65 }
66  
67  
68 sub para {
69  
70 my ($self, $data_ar)=@_;
71 my $text=$self->pull_node_text($data_ar, $NULL);
72 $text=~s/ +/ /g;
73 return $text;
74  
75 }
76  
77 __END__