You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The XML files in the docs are using 1 space for indentation, so setting the ``XMLLINT_INDENT= ' '`` environment variable and the ``--format`` option for ``xmllint`` ensuring the right indentation makes sense to me.
Regarding the encoding, some files are using UTF-8, others utf-8.
See: https://gnome.pages.gitlab.gnome.org/libxml2/xmllint.html
Copy file name to clipboardExpand all lines: scripts/xml-check.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@
43
43
fwrite($fp, $file);
44
44
fclose($fp);
45
45
46
-
passthru("$xmllint --noent --noout --valid $example_filename 2> $example_filename.out"); // xmllint outputs to stderr which is not catched by shell_exec, 2> &1 doesn't work on Windows
46
+
passthru("XMLLINT_INDENT=' ' $xmllint --noent --noout --encode UTF-8 --format --valid $example_filename 2> $example_filename.out"); // xmllint outputs to stderr which is not catched by shell_exec, 2> &1 doesn't work on Windows
0 commit comments