|   | 1 |  initial version  | 
If you want to generate sws worksheets, i would suggest to first generate ReStructuredText (which is well specified) and then use:
sage -rst2sws file.rst file.sws
Code blocks are of the form
::
    sage: a = 1+1
    sage: a
    2
 Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
 
                
                Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.