def add_stmt(self, buf, code):
        if self.newline == "\r\n":
            code = code.replace("\r\n", "\n")
        buf.append(code)
        #if code[-1] != '\n':
        #    buf.append(self.newline)
dataset/ETHPy150Open rst2pdf/rst2pdf/rst2pdf/tenjin.py/Template.add_stmt/original