mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-23 23:54:44 +00:00
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:
parent
76751c04af
commit
29f3efd91a
1 changed files with 2 additions and 8 deletions
|
|
@ -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"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue