Changeset 5342:2ca278f69ba8 in livinglogic.python.xist

Show
Ignore:
Timestamp:
02/12/13 09:58:19 (7 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Fix _str formatting (linefeeds were missing if the block contained expressions).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/ul4c.py

    r5341 r5342  
    831831                yield level*"\t" 
    832832                yield from node._str(level) 
     833                yield "\n" 
    833834        else: 
    834835            yield level*"\t" 
     
    13301331        yield "print " 
    13311332        yield from self.obj._str(level) 
    1332         yield "\n" 
    13331333 
    13341334    @handleeval 
     
    13461346        yield "printx " 
    13471347        yield from self.obj._str(level) 
    1348         yield "\n" 
    13491348 
    13501349    @handleeval 
     
    13621361        yield "return " 
    13631362        yield from self.obj._str(level) 
    1364         yield "\n" 
    13651363 
    13661364    @handleeval 
     
    18331831        yield " = " 
    18341832        yield from self.value._str(level) 
    1835         yield "\n" 
    18361833 
    18371834    @handleeval 
     
    18511848        yield " += " 
    18521849        yield from self.value._str(level) 
    1853         yield "\n" 
    18541850 
    18551851    @handleeval 
     
    18691865        yield " -= " 
    18701866        yield from self.value._str(level) 
    1871         yield "\n" 
    18721867 
    18731868    @handleeval 
     
    18871882        yield " *= " 
    18881883        yield from self.value._str(level) 
    1889         yield "\n" 
    18901884 
    18911885    @handleeval 
     
    19061900        yield " //= " 
    19071901        yield from self.value._str(level) 
    1908         yield "\n" 
    19091902 
    19101903    @handleeval 
     
    19241917        yield " /= " 
    19251918        yield from self.value._str(level) 
    1926         yield "\n" 
    19271919 
    19281920    @handleeval 
     
    19421934        yield " %= " 
    19431935        yield from self.value._str(level) 
    1944         yield "\n" 
    19451936 
    19461937    @handleeval