<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::Editor::Multiselect;
use strict;
use Debconf::Gettext;
use base qw(Debconf::Element::Multiselect);


sub show {
	my $this=shift;

	my @choices=$this-&gt;question-&gt;choices_split;

	$this-&gt;frontend-&gt;comment($this-&gt;question-&gt;extended_description."\n\n".
		"(".gettext("Choices").": ".join(", ", @choices).")\n".
		gettext("(Enter zero or more items separated by a comma followed by a space (', ').)")."\n".
		$this-&gt;question-&gt;description."\n");

	$this-&gt;frontend-&gt;item($this-&gt;question-&gt;name, join ", ", $this-&gt;translate_default);
}


sub value {
	my $this=shift;

	return $this-&gt;SUPER::value() unless @_;
	my @values=split(',\s+', shift);

	my %valid=map { $_ =&gt; 1 } $this-&gt;question-&gt;choices_split;
	
	$this-&gt;SUPER::value(join(', ', $this-&gt;order_values(
			map { $this-&gt;translate_to_C($_) }
			grep { $valid{$_} } @values)));
}


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