Debian Codegraph @

Debconf/Element/Web/Text.pm

raw
1 #!/usr/bin/perl
2
3 =head1 NAME
4
5 Debconf::Element::Web::Text - A paragraph on a form
6
7 =cut
8
9 package Debconf::Element::Web::Text;
10 use warnings;
11 use strict;
12 use base qw(Debconf::Element);
13
14 =head1 DESCRIPTION
15
16 This element handles a paragraph of text on a web form.
17
18 =head1 METHODS
19
20 =over 4
21
22 =item show
23
24 Generates and returns html for the paragraph of text.
25
26 =cut
27
28 sub show {
29 my $this=shift;
30
31 $_=$this->question->extended_description;
32 s/\n/\n<br>\n/g;
33 $_.="\n<p>\n";
34
35 return "<b>".$this->question->description."</b>$_<p>";
36 }
37
38 =back
39
40 =head1 AUTHOR
41
42 Joey Hess <[email protected]>
43
44 =cut
45
46 1