예제 #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)