def js_render_custom_action(self, rh, action):
        yield "Lino.%s = function(rp, pk, params) { " % action.full_name()
        yield "  var h = function() { "
        uri = rh.actor.actor_url()
        yield "    Lino.run_row_action(rp, %s, %s, pk, %s, params, %s);" % (
            py2js(uri), py2js(action.action.http_method),
            py2js(action.action.action_name),
            action.action.preprocessor)
        yield "  };"
        yield "  var panel = Ext.getCmp(rp);"
        yield "  if(panel) panel.do_when_clean(true, h); else h();"
        yield "};"
Produces unwrapped lines from the given code.
dataset/ETHPy150Open lsaffre/lino/lino/modlib/extjs/ext_renderer.py/ExtRenderer.js_render_custom_action--crossover with--dataset/ETHPy150Open google/yapf/yapftests/subtype_assigner_test.py/SubtypeAssignerTest._ParseAndUnwrap