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
➜ Log formatting issue
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Madnesssoft
(4 posts) Bio
|
Date
| Fri 07 Oct 2011 10:12 AM (UTC) |
Message
| I'm having a little trouble with running the log in HTML, it keeps inserting code like this(ignore the color I just yanked it from the logfile)
</font><font color="#969696">
When it should just be
<font color="#969696">
Any reason why the extra is getting tossed in there? It's strange because it makes the log perfectly once told to start, but after that it flakes out once more things are added in real time and starts adding the extra bit of preamble.
| Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #1 on Fri 07 Oct 2011 04:57 PM (UTC) |
Message
| It's mostly likely because MUD colors don't have any ending color tag. So in order to end a font color in HTML, it has to force close the font tag.
Example:
&Rred color&Bblue color
Becomes logged as:
<font color="red">red color</font><font color="blue">blue color |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Madnesssoft
(4 posts) Bio
|
Date
| Reply #2 on Fri 07 Oct 2011 05:29 PM (UTC) |
Message
| Ok, well that would make sense. But I'm on a MUCK, no color is being sent to me, I'm just using color triggers in mushclient to let me notice key things easier. It works perfect like I said if I stop the log, start it again and it takes what is in the buffer and turns it into the htm file, but that's completely overwriting the file, something I don't want in the long run and defeats the purpose of a log.
Also the htm is still readable, it just makes everything really thin lined which is annoying how it can go from WYSIWYG to WTFAILA(what the fuck am I looking at?). | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #3 on Fri 07 Oct 2011 09:12 PM (UTC) |
Message
| You should probably add a:
to the file preamble. That way they are balanced.
Then each line closes the previous font and starts a new one.
Quote:
It works perfect like I said if I stop the log, start it again and it takes what is in the buffer and turns it into the htm file, but that's completely overwriting the file, something I don't want in the long run ...
There is an option to append to the log. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Madnesssoft
(4 posts) Bio
|
Date
| Reply #4 on Sat 08 Oct 2011 10:15 AM (UTC) |
Message
| <html>
<body bgcolor="#000000">
<META HTTP-EQUIV="REFRESH" CONTENT="60">
<head>
<title>Log of %N session</title>
</head>
<body>
<table border=0 cellpadding=5 bgcolor="#000000">
<tr><td>
<pre><code><font size=2 face="FixedSys, Lucida Console, Courier New, Courier">
is what my preamble looks like, where should I put it to keep my colors or does that not matter? I also have in the output preamble.
<font color="white">%I:%M</font> | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #5 on Sun 09 Oct 2011 02:32 AM (UTC) |
Message
|
Madnesssoft said:
is what my preamble looks like, where should I put it to keep my colors or does that not matter?
At the end. Then the preamble ends with an opening font tag, and then each line closes it and opens a new one. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Madnesssoft
(4 posts) Bio
|
Date
| Reply #6 on Sun 09 Oct 2011 01:13 PM (UTC) |
Message
| Nice, yeah, that works perfectly now. Thanks! | 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.
19,892 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top