Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
break a text readably into a json list with reasonable line lengths

        def jsListFromString(text, linebreak="\n"):
    "break a text readably into a json list with reasonable line lengths"
    listResult = list(jsListFromStringGenerator(text))
    return linebreak.join(listResult)
        


src/w/h/whiff-1.1/whiff/middleware/EvalPageFunction.py   whiff(Download)
        if self.inline:
            linebreak = ""
        jsArray = misc.jsListFromString(pageContent, linebreak=linebreak)
        # make the url an absolute url
        absoluteUrl = misc.getAbsoluteUrl(url, env)

src/w/h/whiff-1.1/whiff/middleware/setInnerHtml.py   whiff(Download)
        pageContent = self.param_value(self.page, env)
        #pr "page content", repr(pageContent)
        pageContentArray = misc.jsListFromString(pageContent)
        nameString = jsonParse.formatString(name)
        nameString = nameString.strip()