From: Dietmar Maurer Date: Mon, 17 Oct 2016 09:51:43 +0000 (+0200) Subject: pve-docs-mediawiki-import.in: avoid to add newlines X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=commitdiff_plain;h=0d02df33f12a84b417a6806e0d3faa51d1ad7b53 pve-docs-mediawiki-import.in: avoid to add newlines --- diff --git a/pve-docs-mediawiki-import.in b/pve-docs-mediawiki-import.in index 851cbf9..1dc4f26 100755 --- a/pve-docs-mediawiki-import.in +++ b/pve-docs-mediawiki-import.in @@ -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;