def lines(self, document): return "\n".join(dump(document, Dumper=RoundTripDumper).split('\n')[ self.start_line(document) - 1:self.end_line(document) ])