Skip to content

Commit

Permalink
MDL-70931 xmldb: Generate install.xml files with EOL and EOF
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mudrd8mz committed Feb 17, 2021
1 parent a2fda12 commit e2f81e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -93,7 +93,7 @@ function invoke() {
$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;
Expand Down
2 changes: 1 addition & 1 deletion lib/xmldb/xmldb_structure.php
Expand Up @@ -359,7 +359,7 @@ public function xmlOutput() {
}
$o.= ' </TABLES>' . "\n";
}
$o.= '</XMLDB>';
$o.= '</XMLDB>' . "\n";

return $o;
}
Expand Down

0 comments on commit e2f81e4

Please sign in to comment.