##// END OF EJS Templates
simplify title_width expression
MinRK -
Show More
@@ -507,8 +507,7 b' class Inspector:'
507 out = []
507 out = []
508 header = self.__head
508 header = self.__head
509 if title_width == 0:
509 if title_width == 0:
510 for title, _ in fields:
510 title_width = max(len(title) + 2 for title, _ in fields)
511 title_width = max(len(title) + 2, title_width)
512 for title, content in fields:
511 for title, content in fields:
513 if len(content.splitlines()) > 1:
512 if len(content.splitlines()) > 1:
514 title = header(title + ":") + "\n"
513 title = header(title + ":") + "\n"
General Comments 0
You need to be logged in to leave comments. Login now