5
0
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:
Dietmar Maurer 2016-10-17 11:51:43 +02:00
parent 7e69098ca3
commit 0d02df33f1

View File

@ -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;