MDL-70931 xmldb: Generate install.xml files with EOL and EOF

As discussed in MDLSITE-6397, all Moodle code files should end with
single Unix-style end of line character. Files created and edited
through the XMLDB editor should follow this rule, too.
This commit is contained in:
David Mudrák 2021-02-17 20:59:19 +01:00
parent 41037efa7a
commit 70b0df5891
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ class create_xml_file extends XMLDBAction {
$c.= ' </KEYS>' . "\n";
$c.= ' </TABLE>' . "\n";
$c.= ' </TABLES>' . "\n";
$c.= ' </XMLDB>';
$c.= ' </XMLDB>' . "\n";
if (!file_put_contents($file, $c)) {
$errormsg = 'Error creando fichero ' . $file;

View File

@ -359,7 +359,7 @@ class xmldb_structure extends xmldb_object {
}
$o.= ' </TABLES>' . "\n";
}
$o.= '</XMLDB>';
$o.= '</XMLDB>' . "\n";
return $o;
}