Content deleted Content added
Updating published sources: SourceUploader: * Change "warning" omboxes to use type=content, even though the border is overridden anyway. |
Updating published sources: TagDater: * When check_page2 was split from check_page for unit testing purposes, some function calls weren't updated properly so check_page() was getting called with wrong arguments. General: * Apparently @_ holds implicit... |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1:
<
package tasks::SourceUploader::Pod;
Line 13:
my $class = shift;
my $self = $class->SUPER::new(@_);
$self->encoding( 'utf8' ) if $self->can('encoding');
$self->accept_targets('*');
$self->{'stack'}=[];
Line 33 ⟶ 34:
target=>$_[1]{'target'},
para=>[],
line=>
};
} elsif($_[0] eq 'Data'){
Line 47 ⟶ 48:
$s=$s->[$#$s]{'para'};
return unless @$s;
my $txt = $_[0]
$
$txt=~s
$s->[$#$s].=$txt;
}
Line 74 ⟶ 76:
s/^\s*|\s*$//g;
if(!/^(\S+?):\s*(.*)$/){
next;
}
Line 85 ⟶ 87:
}
my $text=join("\n\n", @para);
$text=~s/([^\n])\n(?=[a-zA-Z0-9< ])/$1 /g; # unwrap lines
$metadata{'*'}=$text;
$self->{'metadata'}=\%metadata;
Line 113 ⟶ 115:
1;
</syntaxhighlight>
|