View unanswered posts | View active topics It is currently 19 Dec 2018 00:19

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.



Reply to topic  [ 2 posts ] 
Script to fix formatting on Mudlet 
Author Message
Adventurer

Joined: 23 Nov 2017 03:45
Posts: 95
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 114 times
18 Dec 2017 17:48
Profile
Wizard
User avatar

Joined: 03 Mar 2014 13:03
Posts: 154
Location: US West
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:
File comment: Converts a tab character (\t) in Genesis into 8 spaces, the standard tab width in the webclient.
TabConverter.xml [1.22 KiB]
Downloaded 47 times
05 Nov 2018 22:38
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.