projects
/
pve-docs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e69098
)
pve-docs-mediawiki-import.in: avoid to add newlines
author
Dietmar Maurer
<dietmar@proxmox.com>
Mon, 17 Oct 2016 09:51:43 +0000
(11:51 +0200)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Mon, 17 Oct 2016 09:51:43 +0000
(11:51 +0200)
pve-docs-mediawiki-import.in
patch
|
blob
|
blame
|
history
diff --git
a/pve-docs-mediawiki-import.in
b/pve-docs-mediawiki-import.in
index 851cbf9bdc6f031cafc7d7412e8ecbfc44fcf9d5..1dc4f2647c9a722c394d3f89b03eedde85bb6768 100755
(executable)
--- 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;