Variable Indent Spacing

Posted by Nerdvana on Thu 21 May 2015 06:01 PM — 3 posts, 13,952 views.

#0
I have been a SimpleMU user for years and am used to a two character paragraph indent. I actually think I'm going to like MUSHclient but the choice of no indent or only 1 character is problematic for me. My eyes are not as good as they were when I was younger and I need that second character for clarity's sake. Is there a way to make that happen?
Australia Forum Administrator #1
Not really, because what it actually does it take the trailing space from the previous line (the space where the line breaks) and puts that at the start of the next line. Thus you get an indent, and if you happen to copy and paste the line elsewhere, the space (and only one space) is still there in the copied text.

You can always increase the font size - or change fonts.

If it is a huge problem you could always make a trigger that matches long lines, omit the entire line, then manually break it up and put it back with bigger indents. However then the copying and pasting doesn't work as nicely.

This is the sort of thing:


<triggers>
  <trigger
   enabled="y"
   keep_evaluating="y"
   match="^.{60,}$"
   omit_from_output="y"
   regexp="y"
   send_to="12"
   sequence="1"
  >
  <send>

WANTED_LENGTH = 60

length = 0

for w in string.gmatch ("%0", "%S+") do
  if length + #w &gt; WANTED_LENGTH then
    print ""  -- start a new line
    Tell "    "   -- indent new line
    length = 0
  end -- if
  ColourTell ("white", "", w .. " ")
  length = length + #w + 1  -- current length
end -- for

print "" -- final line terminator
</send>
  </trigger>
</triggers>



Template:pasting
For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.


Change the "60" there (in two spots) to break at a different length.

However that has its own issues. For one thing, the output is in a single colour (I chose white). Also, if the MUD breaks lines for you (some do, some don't) then you will get your line breaks combined with the MUD line breaks.

I think the simplest and easiest thing is to adjust the font size as required, and then relax into the way the text appears. :)
#2
Yeah, I'm not looking to change the line breaks. I just figure that if SimpleMU had it as a variable setting most other MUSH clients would as well. Thanks for the prompt reply.