1 | | For the curious, the bad code blocks in the original description say: |
2 | | |
3 | | |
4 | | To test, make a JS file (say ``myfile.js``) with the following valid JS content: |
5 | | |
6 | | {{{ |
7 | | var a = 1; |
8 | | if(a != 2 && a != 5) //this comment breaks the file |
9 | | { |
10 | | //this does not |
11 | | alert(gettext("foobar")); |
12 | | } |
13 | | }}} |
14 | | |
15 | | Running ``make-messages.py -d djangojs -a`` will then yield the following output for that (in the ``myfile.js.py`` intermediate file it produces): |
16 | | |
17 | | {{{ |
18 | | var a = 1; |
19 | | if(a != 2 && a != 5) //this comment breaks the file |
20 | | { |
21 | | #this does not |
22 | | alert(gettext("foobar")); |
23 | | } |
24 | | }}} |
| 1 | (edits here incorporated into main description) |