示例#1
0
    def __call__(self, ctx, typ):
        ctx.obj = ustr(repr(ctx.obj))
        shrink_inner_string(ctx, 
                            self.config.string_break_method,
                            self.config.string_break_width,
                            None)

        return ctx.obj
示例#2
0
    def __call__(self, ctx, typ):
        ctx.obj = ustr(repr(ctx.obj))
        shrink_inner_string(ctx, self.config.string_break_method,
                            self.config.string_break_width, None)

        return ctx.obj
示例#3
0
 def rearrenge(self, ctx, typ, wrapper):
     shrink_inner_string(ctx, 
                         self.config.string_break_method,
                         self.config.string_break_width,
                         wrapper)
     return wrapper.wrap(ctx.obj)
示例#4
0
 def rearrenge(self, ctx, typ, wrapper):
     shrink_inner_string(ctx, self.config.string_break_method,
                         self.config.string_break_width, wrapper)
     return wrapper.wrap(ctx.obj)