ckan/include/rjsmin.py
def jsmin(script): # pylint: disable = W0621
        r"""
        Minify javascript based on `jsmin.c by Douglas Crockford`_\.

        Instead of parsing the stream char by char, it uses a regular
        expression approach which minifies the whole script with one big
        substitution regex.

        .. _jsmin.c by Douglas Crockford:
           http://www.crockford.com/javascript/jsmin.c

        :Parameters:
          `script` : ``str``
            Script to minify

        :Return: Minified script
        :Rtype: ``str``
        """
        return space_sub(space_subber, '\n%s\n' % script).strip()
r"""
        Minify javascript based on `jsmin.c by Douglas Crockford`_\.

        Instead of parsing the stream char by char, it uses a regular
        expression approach which minifies the whole script with one big
        substitution regex.

        .. _jsmin.c by Douglas Crockford:
           http://www.crockford.com/javascript/jsmin.c

        :Parameters:
          `script` : ``str``
            Script to minify

        :Return: Minified script
        :Rtype: ``str``
        
r"""
Minify javascript based on `jsmin.c by Douglas Crockford`_\.

Instead of parsing the stream char by char, it uses a regular
expression approach which minifies the whole script with one big
substitution regex.


r " " " Minify javascript based on ` jsmin . c by Douglas Crockford ` _ \ . Instead of parsing the stream char by char it uses a regular expression approach which minifies the whole script with one big substitution regex .
def jsmin(script): 
        return space_sub(space_subber, '\n%s\n' % script).strip()
def jsmin ( script ) : return space_sub ( space_subber , '\n%s\n' % script ) . strip ( )
r"""
Minify javascript based on `jsmin.c by Douglas Crockford`_\.
r " " " Minify javascript based on ` jsmin . c by Douglas Crockford ` _ \ .
# pylint: disable = W0621 r"""
        Minify javascript based on `jsmin.c by Douglas Crockford`_\.

        Instead of parsing the stream char by char, it uses a regular
        expression approach which minifies the whole script with one big
        substitution regex.

        .. _jsmin.c by Douglas Crockford:
           http://www.crockford.com/javascript/jsmin.c

        :Parameters:
          `script` : ``str``
            Script to minify

        :Return: Minified script
        :Rtype: ``str``
        """
script
Parameters
`script` : ``str``
Script to minify
` script ` : ` ` str ` ` Script to minify
Return
None
Rtype
None