Changes between Version 35 and Version 36 of DeveloperGuidelines/CodeConventions
- Timestamp:
- 11/16/13 23:25:08 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/CodeConventions
v35 v36 31 31 32 32 - for XML/HTML attributes use double-quotes {{{" "}}} (inner quotes must be escaped anyway) 33 34 Note that this: 35 {{{ 36 #!Python 37 inline_javascript = '''sometext="%s";''' % sometext 38 }}} 39 is a potential bug - the JavaScript breaks when {{{sometext}}} contains a {{{"}}}. 40 41 A safer way to do that is: 42 {{{ 43 #!Python 44 inline_javascript = '''sometext=%s;''' % json.dumps(sometext) 45 }}} 33 46 === Naming conventions === 34 47