Fixed #293 add newline to txt

This commit is contained in:
Remy Sharp 2014-06-10 07:07:16 +01:00
parent 3af3aa6570
commit a8f1791c13

View file

@ -148,6 +148,7 @@
$license = array_shift(explode('</article>', array_pop(explode('<article>', $license))));
$license = preg_replace('/<[^>]*>/', '', trim($license));
$license = html_entity_decode($license, ENT_COMPAT | ENT_HTML401, 'UTF-8');
$license .= "\n";
header('content-type: text/plain; charset=UTF-8');
}