Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def truncate_lines(body, lines = 4, max_chars = 400):
    if not body: return ""
    body_lines = body.splitlines()
    summary = "\n".join(body_lines[0:lines])
    return summary
    summary = _truncate_lines(body_lines, lines - 1, summary, max_chars)
    return summary
        


src/q/u/quora-python-HEAD/handlers.py   quora-python(Download)
        ask = Ask(title=frm.title,
            body = frm.body,
            summary = utils.truncate_lines(frm.body,3,500),
            user = self.current_user,
            tags = utils.format_tags(frm.tags))