Fix exporting multiline comments
Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
0f87b73ae2
commit
ab26a8fe97
@ -523,9 +523,11 @@ class ExportSql extends ExportPlugin
|
||||
return '--' . $GLOBALS['crlf'];
|
||||
} else {
|
||||
$lines = preg_split("/\\r\\n|\\r|\\n/", $text);
|
||||
$result = array();
|
||||
foreach ($lines as $line) {
|
||||
return '-- ' . $line . $GLOBALS['crlf'];
|
||||
$result[] = '-- ' . $line . $GLOBALS['crlf'];
|
||||
}
|
||||
return implode('', $result);
|
||||
}
|
||||
} else {
|
||||
return '';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user