About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
aslanthekat
Novice


Joined: 17 Sep 2007
Posts: 44
Location: Missouri

PostPosted: Sat Jul 28, 2012 2:47 pm   

formatting with MXP
 
I'm trying to format some output using mxp. I'd like to break the output up into paragraphs with breaks.

Code:
#mxp Before you die: type <send href=':%item(%names, 1):help recall'>recall reset</send>.
returns
Quote:
Before you die: type recall reset.
Code:
#mxp Before you die: <br>type <send href=':%item(%names, 1):help recall'>recall reset</send>.
returns
Quote:
Before you die:
type <send href=':falkor:help recall'>recall reset</send>.
Note:I tried using <br> and %crlf and both return the above

I appreciate the help.
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Sat Jul 28, 2012 4:50 pm   
 
Interesting. Not sure if that's a bug or not (I don't use MXP much), but the easiest solution would probably be to just use two #MXP commands.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Sat Jul 28, 2012 5:28 pm   
 
try just %lf
_________________
Discord: Shalimarwildcat
Reply with quote
aslanthekat
Novice


Joined: 17 Sep 2007
Posts: 44
Location: Missouri

PostPosted: Sat Jul 28, 2012 5:45 pm   
 
Thanks for the feedback. %lf does the same thing. I will just use more than one #mxp.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Sat Jul 28, 2012 9:42 pm   
 
Yes, <br> does not work in a #MXP command.
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Sat Jul 28, 2012 9:53 pm   
 
Well, <br> does seem to work - it adds a new line anyway, which I'm assuming is all it's supposed to do - the problem is that other tags aren't being parsed on subsequent lines (not just <send> tags). As I said, I don't use MXP much, so I don't want to say it's definitely a bug, but it does look suspicious to me.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Sun Jul 29, 2012 1:55 pm   
 
Yes, I think that's the issue I saw last year. I think I reported the bug, but can't be sure offhand.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net