Script to fix formatting on Mudlet

Need some help with your MUD client? Forgot your password? Get help here.
Forum rules
- Use common sense and be respectful towards each other at all times, even when disagreeing.
- Do not reveal sensitive game information. Guild secrets, player seconds are examples of things not allowed.
Post Reply
Alteor
Adventurer
Posts: 95
Joined: 23 Nov 2017 03:45

Script to fix formatting on Mudlet

Post by Alteor » 18 Dec 2017 17:48

So, Mudlet has a super retarded bug, thanks to lead Mudlet dev being stubborn, where it treats the "tab" character in extremely bizarre manner and break formatting all over the place in all LPMud games.

So, here is the fix, I tested on Palanthas clothing shop (where bug was super obvious).
Attachments
tabfixer.xml
(2.24 KiB) Downloaded 192 times

User avatar
Shanoga
Wizard
Posts: 167
Joined: 03 Mar 2014 13:03
Location: US West

Re: Script to fix formatting on Mudlet

Post by Shanoga » 05 Nov 2018 22:38

This post is a bit old, but I am going to offer a slightly adjusted xml file that keeps the formatting a bit closer to the intended spacing. The code is also slightly shorter. For what it's worth, I took this directly from Vadi (developer of Mudlet) and just made a slight change to the number of spaces.

This script does one simple thing. It replaces "tabs" in Genesis with 8 whitespaces (the length of a tab in the webclient). I don't know that it performs any differently than what Alteor so kindly posted above, but I figure it never hurts to have a little variety.
Attachments
TabConverter.xml
Converts a tab character (\t) in Genesis into 8 spaces, the standard tab width in the webclient.
(1.22 KiB) Downloaded 128 times

Post Reply
http://tworzymyatmosfere.pl/przescieradla-jedwabne-z-gumka/