<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#!/usr/bin/perl -w
# This file was preprocessed, do not edit!


package Debconf::Element::Web::Boolean;
use strict;
use base qw(Debconf::Element);


sub show {
	my $this=shift;

	$_=$this-&gt;question-&gt;extended_description;
	s/\n/\n&lt;br&gt;\n/g;
	$_.="\n&lt;p&gt;\n";

	my $default='';
	$default=$this-&gt;question-&gt;value if defined $this-&gt;question-&gt;value;
	my $id=$this-&gt;id;
	$_.="&lt;input type=checkbox name=\"$id\"". ($default eq 'true' ? ' checked' : ''). "&gt;\n&lt;b&gt;".
		$this-&gt;question-&gt;description."&lt;/b&gt;";

	return $_;
}


sub value {
	my $this=shift;

	return $this-&gt;SUPER::value() unless @_;
	my $value=shift;
	$this-&gt;SUPER::value($value eq 'on' ? 'true' : 'false');
}


1
</pre></body></html>