Revision 1b9d0f70
Von Sven Schöling vor mehr als 11 Jahren hinzugefügt
SL/Template/OpenDocument.pm | ||
---|---|---|
260 | 260 |
$contents =~ s|</office:automatic-styles>|${new_styles}</office:automatic-styles>|; |
261 | 261 |
$contents =~ s|[\n\r]||gm; |
262 | 262 |
|
263 |
my $new_contents = $self->parse_block($contents); |
|
263 |
my $new_contents; |
|
264 |
if ($self->{use_template_toolkit}) { |
|
265 |
my $additional_params = $::form; |
|
266 |
|
|
267 |
$::form->init_template->process(\$contents, $additional_params, \$new_contents) || die $::form->template->error; |
|
268 |
} else { |
|
269 |
$new_contents = $self->parse_block($contents); |
|
270 |
} |
|
264 | 271 |
if (!defined($new_contents)) { |
265 | 272 |
$main::lxdebug->leave_sub(); |
266 | 273 |
return 0; |
Auch abrufbar als: Unified diff
Erste Version Template Toolkit Druck