mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Testing a width fix.
This commit is contained in:
parent
0d5d8ec847
commit
e32a096bf5
1 changed files with 1 additions and 1 deletions
|
|
@ -1058,7 +1058,7 @@ class EvMenu(object):
|
|||
nodetext_width_max = max(m_len(line) for line in nodetext.split("\n"))
|
||||
options_width_max = max(m_len(line) for line in optionstext.split("\n"))
|
||||
total_width = min(screen_width, max(options_width_max, nodetext_width_max))
|
||||
logger.log_msg("Total Width: %d\nOptions Width Max: %d\nNodeText Width Max: %d" % (total_width, options_with_max, nodetext_width_max))
|
||||
logger.log_msg("Total Width: %d\nOptions Width Max: %d\nNodeText Width Max: %d" % (total_width, options_width_max, nodetext_width_max))
|
||||
separator1 = "_" * total_width + "\n\n" if nodetext_width_max else ""
|
||||
separator2 = "\n" + "_" * total_width + "\n\n" if total_width else ""
|
||||
return separator1 + "|n" + nodetext + "|n" + separator2 + "|n" + optionstext
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue