Skip to content

Commit

Permalink
Clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
zas committed Sep 24, 2023
1 parent 0235fe6 commit 0a630c5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,16 @@ print(d['small'])
In above example, `l1` contains identifiers (keys of dict `d`) while others are English words/phrases.
In the dict declaration, keys are single-quoted but values are double-quoted.

Otherwise, choose whichever limit the number of escaped characters.

Note: URIs (and paths used in URIs) should be, in general, enclosed in double quotes,
URIs (and paths used in URIs) should be, in general, enclosed in double quotes,
mainly because single quotes can appear in URI, unencoded, as sub-delimiters as specified
by [RFC3986](https://www.rfc-editor.org/rfc/rfc3986#section-2.2).

HTML/XML code often contains attributes that are enclosed by double quotes, so in this case,
better use single quotes, e.g. `html = '<a href="someurl">text</a>'`.

In doubt, choose whichever limit the number of escaped characters.
Typically single quote strings that are meant to contain double quotes (e.g. `'The file is "{file}"'`).


## Git Work-flow

Expand Down

0 comments on commit 0a630c5

Please sign in to comment.