Skip to content

Commit

Permalink
Fix exporting multiline comments
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Jul 13, 2016
1 parent b8c216c commit 2ac1359
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/plugins/export/ExportSql.class.php
Expand Up @@ -583,9 +583,11 @@ private function _exportComment($text = '')
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 '';
Expand Down

0 comments on commit 2ac1359

Please sign in to comment.