]> Sergey Matveev's repositories - public-inbox.git/blobdiff - Documentation/txt2pre
doc/txt2pre: flush output before utime()
[public-inbox.git] / Documentation / txt2pre
index 7cab0fa259ead40462c19599a6404ee5b3ed0463..cb6a76138131a8d0abd3593d013860d523b1f1fa 100755 (executable)
@@ -22,6 +22,7 @@ print '<html><head>',
   qq(<meta\nhttp-equiv="Content-Type"\ncontent="text/html; charset=utf-8"\n/>),
   "<title>$title</title>",
   "</head><body><pre>",  $str , '</pre></body></html>';
+STDOUT->flush;
 
 # keep mtime on website consistent so clients can cache
 if (-f STDIN && -f STDOUT) {