ID:778249
 
BYOND Version:494
Operating System:Windows 7 Ultimate 64-bit
Web Browser:Internet Explorer 9.0
Applies to:Dream Seeker
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:Maptext improperly handles alignment in css. Also adding additional returns than needed. This was tested with old html and with css.

Numbered Steps to Reproduce Problem:
1) Download source packet here: http://johngames.com/displaytext.zip
2) Compile and run.

Code Snippet (if applicable) to Reproduce Problem:
Due to requiring additional files, I've included a 2kb mini project that reproduces the problem.

Expected Results:


Actual Results:


Does the problem occur:
Every time? Or how often? Every time.
In other games? Unknown
In other user accounts? Yes.
On other computers? Yes.

When does the problem NOT occur? Unknown

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? Previous version did not have maptext

Workarounds:
Create a bunch of write lines and break it up by line? Though such a workaround would need you to know how long each line could be, a hard thing to calculate in non mono space fonts.
Can't comment on the alignment, but the extra line breaks are probably because you're using both paragraph tags and newlines. Either putting the <p> tags on one line, or switching them to span tags will fix the spacing.
In response to DarkCampainger (#1)
I forget that maptext counts new line while in html they don't. Good find!
I did some looking into this and it turns out not to be a bug; maptext only supports a single alignment for the entire block. I think it's reasonable to count this as a feature request, so I'll move it there.
In response to Lummox JR (#3)
I would like to note that align right is never respected, I suppose that part would count as a bug?