parameters: (self)
return_statement: return text
docstring: Return text with final \n if needed and os eols.
docstring_summary: Return text with final \n if needed and os eols.
docstring_tokens: Return text with final \ n if needed and os eols .
function: def fixnewlines(self):
          "Return text with final \n if needed and os eols."
          if (self.text.get("end-2c") != '\n'
              and not hasattr(self.editwin, "interp")):  # Not shell.
              self.text.insert("end-1c", "\n")
          text = self.text.get("1.0", "end-1c")
          if self.eol_convention != "\n":
              text = text.replace("\n", self.eol_convention)
          return text
function_tokens: def fixnewlines ( self ) : if ( self . text . get ( "end-2c" ) != '\n' and not hasattr ( self . editwin , "interp" ) ) : # Not shell. self . text . insert ( "end-1c" , "\n" ) text = self . text . get ( "1.0" , "end-1c" ) if self . eol_convention != "\n" : text = text . replace ( "\n" , self . eol_convention ) return text