Changes between Initial Version and Version 1 of Ticket #7704, comment 9


Ignore:
Timestamp:
Apr 9, 2011, 9:03:34 AM (14 years ago)
Author:
Ned Batchelder

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7704, comment 9

    initial v1  
    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)
Back to Top