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'];
|
return '--' . $GLOBALS['crlf'];
|
||||||
} else {
|
} else {
|
||||||
$lines = preg_split("/\\r\\n|\\r|\\n/", $text);
|
$lines = preg_split("/\\r\\n|\\r|\\n/", $text);
|
||||||
|
$result = array();
|
||||||
foreach ($lines as $line) {
|
foreach ($lines as $line) {
|
||||||
return '-- ' . $line . $GLOBALS['crlf'];
|
$result[] = '-- ' . $line . $GLOBALS['crlf'];
|
||||||
}
|
}
|
||||||
|
return implode('', $result);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return '';
|
return '';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user