mirror of
git://git.proxmox.com/git/pve-docs.git
synced 2025-03-07 00:58:19 +03:00
pve-docs-mediawiki-import.in: avoid to add newlines
This commit is contained in:
parent
7e69098ca3
commit
0d02df33f1
@ -70,10 +70,8 @@ sub update_page {
|
||||
|
||||
chomp $pve_content;
|
||||
|
||||
if ($page =~ m/^(.*)$starttag\n.*\n$endtag(.*)$/s) {
|
||||
if ($page =~ m/^(.*)$starttag\n.*\n$endtag\n?(.*)$/s) {
|
||||
my ($top_content, $bottom_content) = ($1, $2);
|
||||
chomp $top_content;
|
||||
chomp $bottom_content;
|
||||
$page = $top_content;
|
||||
$page .= "$starttag\n";
|
||||
$page .= $pve_content;
|
||||
|
Loading…
x
Reference in New Issue
Block a user