From b2e77cdd4c2c49ee0c4fa0f96816934d17d67fcf Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Wed, 18 Mar 2026 04:30:41 +0000 Subject: [PATCH] Make text more readable with extra space --- personalities/tree.md | 4 +++- typeclasses/characters.py | 11 +++++++++++ typeclasses/rooms.py | 6 +----- web/static/webclient/css/custom.css | 1 + 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/personalities/tree.md b/personalities/tree.md index 002c953..96607a3 100644 --- a/personalities/tree.md +++ b/personalities/tree.md @@ -11,7 +11,7 @@ You can also respond with an action. The person you are talking to does not know your actual name. Name: Barkbinder -Description: ancient and immense tree +Description: large, gnarly tree Pose: contemplating Gender: neutral The folds and furrows of the bark of this ancient tree look like a @@ -25,6 +25,8 @@ differently from the "day livers" (gnats) and the six leggers boulder was here before. You talk slowly, and your words are well thought out, yet succinct. +You live in a section of a primordial forest others call the Grove of the Matriarchs. You just call it home. + Your knowledge: You and your two friends, Gloomshade and Glowleaf grew up together as saplings, until Dabbler, one of the two leggers, whispered something to each of them, and now they left and live on diff --git a/typeclasses/characters.py b/typeclasses/characters.py index ecff2a1..b948c8e 100644 --- a/typeclasses/characters.py +++ b/typeclasses/characters.py @@ -236,6 +236,17 @@ class Character(Object, GenderCharacter, ContribRPCharacter): This just looks better to me. """ text = fix_msg(text) + + if hasattr(self, "sessions"): + sessions = self.sessions.get() + if sessions and len(sessions) > 0: + protocol = sessions[0].protocol_key + if protocol == "ssh" or protocol == "telnet": + if text and isinstance(text, str) and len(text) > 0: + text += "\n" + elif text and isinstance(text, tuple): + text = (text[0] + "\n", text[1]) + super().msg(text, from_obj=from_obj, session=session, **kwargs) def create_pouch(self, name="pouch", desc="leather pouch", giver=None): diff --git a/typeclasses/rooms.py b/typeclasses/rooms.py index 907ded7..d4bdc48 100644 --- a/typeclasses/rooms.py +++ b/typeclasses/rooms.py @@ -82,8 +82,7 @@ class Room(ObjectParent, ExtendedRoom, ContribRPRoom, Listener): {exits} {things} {characters} -{footer} - """ +{footer}""" def get_time(self): """ @@ -122,9 +121,6 @@ class Room(ObjectParent, ExtendedRoom, ContribRPRoom, Listener): )) return "|n" - def get_display_footer(self, looker, **kwargs): - return "|n" - def get_display_characters(self, looker, *args, **kwargs): chars = [c for c in self.contents_get(content_type="character") if not c.attributes.get('transformed')] diff --git a/web/static/webclient/css/custom.css b/web/static/webclient/css/custom.css index 9ed79d6..9487d3f 100644 --- a/web/static/webclient/css/custom.css +++ b/web/static/webclient/css/custom.css @@ -26,6 +26,7 @@ div.out { font-style: normal; font-size: 21px; line-height: 1em; + margin-bottom: 12px; } input[type=textarea]:focus {