use wrap method

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2083 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2004-11-30 14:10:06 +00:00
parent 76751c04af
commit 29f3efd91a

View file

@ -178,19 +178,13 @@ class TextLogger (linkcheck.logger.Logger):
def write_info (self, url_data):
"""write url_data.info"""
text = os.linesep.join(url_data.info)
text = linkcheck.strformat.wrap(text, 65,
subsequent_indent=" "*self.max_indent)
self.write(self.field("info") + self.spaces("info"))
self.writeln(text, color=self.colorinfo)
self.writeln(self.wrap(url_data.info, 65), color=self.colorinfo)
def write_warning (self, url_data):
"""write url_data.warning"""
text = os.linesep.join(url_data.warning)
text = linkcheck.strformat.wrap(text, 65,
subsequent_indent=" "*self.max_indent)
self.write(self.field("warning") + self.spaces("warning"))
self.writeln(text, color=self.colorwarning)
self.writeln(self.wrap(url_data.warning, 65), color=self.colorwarning)
def write_result (self, url_data):
"""write url_data.result"""