projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd7c6d6
)
fix precidence problem, thanks bod
author
joey
<joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 3 Mar 2007 00:46:21 +0000
(
00:46
+0000)
committer
joey
<joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 3 Mar 2007 00:46:21 +0000
(
00:46
+0000)
IkiWiki.pm
patch
|
blob
|
history
diff --git
a/IkiWiki.pm
b/IkiWiki.pm
index 62b54373bfb6195e64717bd9d613d184621fbbab..ed74ff85e65daff5e8c6c76be5b02ef3c0f4733e 100644
(file)
--- a/
IkiWiki.pm
+++ b/
IkiWiki.pm
@@
-293,9
+293,7
@@
sub writefile ($$$;$$) { #{{{
$writer->(\*OUT, $cleanup);
}
else {
- if (length $content) {
- print OUT $content || error("failed writing to $newfile: $!", $cleanup);
- }
+ print OUT $content or error("failed writing to $newfile: $!", $cleanup);
}
close OUT || error("failed saving $newfile: $!", $cleanup);
rename($newfile, "$destdir/$file") ||