Changes between Version 52 and Version 53 of Coding_Conventions
- Timestamp:
- Nov 14, 2021, 8:50:07 AM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Coding_Conventions
v52 v53 434 434 * When on the same line, insert spaces after `{`, and `:` and before `}`, but not after `[` or before `]`; e.g. `{ "foo": "bar" }` and `["foo", "bar"]`. 435 435 * Use tabs for indentation, not spaces. 436 * The files should have the MIME-TYPE `application/json`. 436 437 437 438 … … 439 440 * All XML files should start with 440 441 {{{ 441 <?xml version="1.0" encoding=" UTF-8"?>442 <?xml version="1.0" encoding="utf-8"?> 442 443 }}} 443 444 and be UTF-8 encoded (preferably without a BOM but that doesn't really matter). 444 445 * Empty-element tags should be written without a trailing space: use `<foo/>` or `<foo bar="baz"/>`, not `<foo />` nor `<foo bar="baz" />`. 445 * Indent using whatever the similar existing XML files use. (Usually two spaces; sometimes four spaces, or tabs, etc.) 446 * Indent using two spaces. 447 * The files should have the mime-type `text/xml`. 446 448 447 449