Changes between Version 52 and Version 53 of Coding_Conventions


Ignore:
Timestamp:
Nov 14, 2021, 8:50:07 AM (2 years ago)
Author:
Freagarach
Comment:

MIME-TYPE of JSON/XML. UTF-8 -> utf-8 in XML (since that is what we use). XML Indentation.

Legend:

Unmodified
Added
Removed
Modified
  • Coding_Conventions

    v52 v53  
    434434 * When on the same line, insert spaces after `{`, and `:` and before `}`, but not after `[` or before `]`; e.g. `{ "foo": "bar" }` and `["foo", "bar"]`.
    435435 * Use tabs for indentation, not spaces.
     436 * The files should have the MIME-TYPE `application/json`.
    436437
    437438
     
    439440 * All XML files should start with
    440441{{{
    441 <?xml version="1.0" encoding="UTF-8"?>
     442<?xml version="1.0" encoding="utf-8"?>
    442443}}}
    443444   and be UTF-8 encoded (preferably without a BOM but that doesn't really matter).
    444445 * 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`.
    446448
    447449