Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Variable Indent Spacing

Variable Indent Spacing

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Nerdvana   (2 posts)  Bio
Date Thu 21 May 2015 06:01 PM (UTC)
Message
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?
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #1 on Thu 21 May 2015 08:04 PM (UTC)
Message
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. :)

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nerdvana   (2 posts)  Bio
Date Reply #2 on Thu 21 May 2015 09:21 PM (UTC)
Message
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.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


10,795 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.