User:AnomieBOT/source/tasks/SourceUploader.pm: Difference between revisions

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: SourceUploader: * Override several behaviors of Pod::Simple::Wiki::Mediawiki: ** Don't try to generate "; foo : bar" lists, to prevent incorrect generation of "; foo1; foo2; foo3" when multiple =items have no intervening t
AnomieBOT (talk | contribs)
Updating published sources: FlagIconRemover: * Consensus seems to exist for processing {{tl|Infobox dam}} as well. The discussion showed two opposes, one of which seemed to miss the point that the discussion was for {{tl|Infobox dam}} only and the ot
Line 132:
my $top='';
if($page eq 'ChangeLog'){
# Pull out most recent 64K10M of changelog entries
my @x=split(/\n/, $pages{$pp});
$pages{$pp}='';
while(defined(my $x=shift @x)){
last if(length($pages{$pp})>65536204800 && $x=~/^==.*==$/);
$pages{$pp}.=$x."\n";
}
$pages{$pp}.="\n__NOTOC__\n";
$pages{$pp}.="\x7b\x7bombox|type=notice|text=See the \x7b\x7bsubst:history|\x7b\x7bsubst:FULLPAGENAME\x7d\x7d|page history|subst=subst:\x7d\x7d for further ChangeLog entries\x7d\x7d\n" if @x;
} elsif($page=~/\.([^.]+)$/ && exists($extensions{$1})){