codesite2git: README.md: fix special characters

This commit is contained in:
mappu 2020-05-04 18:07:39 +12:00
parent aa96521ca7
commit d9d0451313

View File

@ -25,6 +25,9 @@ class CProjectGitExporter extends CProject {
// Prepare to start modifying the generated README.md file // Prepare to start modifying the generated README.md file
$this->longdesc = preg_replace('~\\[url=([^\\]]+?)\\](.+?)\\[/url\\]~m', '[\\2](\\1)', $this->longdesc); $this->longdesc = preg_replace('~\\[url=([^\\]]+?)\\](.+?)\\[/url\\]~m', '[\\2](\\1)', $this->longdesc);
$this->longdesc = str_replace("\xEF\xBB\xBF", "", $this->longdesc); // Remove interior UTF-8 BOM markers
$this->longdesc = str_replace("\r", "", $this->longdesc); // dos2unix
$lines = explode("\n", $this->longdesc); $lines = explode("\n", $this->longdesc);
$lines = array_merge(["# ".$this->projname, ""], $lines); $lines = array_merge(["# ".$this->projname, ""], $lines);