small edits to text editor from writing a python editor extension.
[blender.git] / release / scripts / modules / bpy_types.py
index 0cd0aaaa3f049c43ffdaa1dd787c2c8456fc85f0..0a796793d01088f5b93ad64b9e6925cae49d2495 100644 (file)
@@ -525,7 +525,7 @@ class Text(bpy_types.ID):
 
     def as_string(self):
         """Return the text as a string."""
-        return "\n".join(line.line for line in self.lines)
+        return "\n".join(line.body for line in self.lines)
 
     def from_string(self, string):
         """Replace text with this string."""