|
XonDK Apprentice
Joined: 01 Dec 2006 Posts: 178
|
Posted: Fri May 14, 2010 9:21 pm
[3.17] Bug: HTML logging spacing not getting logged. |
The following which is taken from the debugger:
Code: |
0.0018 | i Aetolia <<ESC>[6z<ESC>[0;37m/--<ESC>[1;36mAncient Heartwood.<ESC>[0;37m--------------------------<ESC>[1;36mv4295<ESC>[0;37m--\<CR><LF>
0.0000 | <CR><LF>
0.0000 | <ESC>[0;32m[<mpelm v=4460 r="A flattened reprieve within the branches of the rowan." t="Forest"><ESC>[1;35m_</mpelm><ESC>[0;32m]<ESC>[0;37m <CR><LF>
0.0000 | <CR><LF>
0.0000 | <ESC>[0;32m[<mpelm v=4419 r="A campsite among the reeds and bracken." t="Forest"><ESC>[0;30m </mpelm><ESC>[0;32m]<ESC>[0;37m-<ESC>[0;32m[<mpelm v=4418 r="A small pond, surrounded by wildflowers." t="Forest"><ESC>[1;35m^</mpelm><ESC>[0;32m]<ESC>[0;37m-<ESC>[0;32m[<mpelm v=4420 r="A sandy campsite, sheltered by beech trees." t="Forest"><ESC>[0;31mo</mpelm><ESC>[0;32m]<ESC>[0;37m <CR><LF>
0.0000 | | <CR><LF>
0.0000 | <ESC>[0;32m[<mpelm v=4417 r="The Rowan Inn." t="Forest"><ESC>[0;30m </mpelm><ESC>[0;32m]<ESC>[0;37m <ESC>[1;30m[<mpelm v=15699 r="Dark room with an ocean view." t="Urban"><ESC>[1;35m_</mpelm><ESC>[1;30m]<ESC>[0;37m <CR><LF>
0.0000 | | | <CR><LF>
0.0000 | <ESC>[0;32m[<mpelm v=4415 r="Along the Draoi terrace." t="Forest"><ESC>[0;30m </mpelm><ESC>[0;32m]<ESC>[0;37m- - - -<ESC>[0;32m[<mpelm v=4421 r="The Draoi terrace." t="Forest"><ESC>[0;30m </mpelm><ESC>[0;32m]<ESC>[0;37m- - -<ESC>[0;32m[<mpelm v=4422 r="Among the whispering willows." t="Forest"><ESC>[0;30m </mpelm><ESC>[0;32m]<ESC>[0;37m <CR><LF>
0.0000 | / \ \ <CR><LF>
0.0000 | / <ESC>[0;36m[<mpelm v=4294 r="Chamber of Autumn." t="Village"><ESC>[0;30m </mpelm><ESC>[0;36m]<ESC>[0;37m <ESC>[0;36m[<mpelm v=4318 r="Atop the Great Oak." t="Village"><ESC>[1;35m_</mpelm><ESC>[0;36m]<ESC>[0;37m <ESC>[0;36m[<mpelm v=4295 r="Chamber of Summer." t="Village"><ESC>[1;34m*</mpelm><ESC>[0;36m]<ESC>[0;37m \ \ <CR><LF>
0.0000 | \ / \ / \ \ <CR><LF>
0.0000 | <ESC>[0;32m[<mpelm v=4410 r="A flattened crook atop the mighty sequoia." t="within a tree"><ESC>[1;35m_</mpelm><ESC>[0;32m]<ESC>[0;37m-<ESC>[0;32m[<mpelm v=4411 r="A jutting ridge atop a large birch." t="within a tree"><ESC>[1;35m_</mpelm><ESC>[0;32m]<ESC>[0;37m <ESC>[0;32m[<mpelm v=4414 r="Entering the Benandanti Complex." t="within a tree"><ESC>[1;35m_</mpelm><ESC>[0;32m]<ESC>[0;37m- - - -<ESC>[0;36m[<mpelm v=4296 r="Central Hall in the Great Oak." t="Village"><ESC>[1;32m¥</mpelm><ESC>[0;36m]<ESC>[0;37m-<ESC>[0;36m[<mpelm v=4297 r="Duiran Council Chambers." t="Village"><ESC>[1;35m^</mpelm><ESC>[0;36m]<ESC>[0;37m <ESC>[1;31m-<ESC>[0;37m<ESC>[0;32m[<mpelm v=4423 r="The joint of the Draoi terrace and the Emerald Circle." t="Forest"><ESC>[0;30m </mpelm><ESC>[0;32m]<ESC>[0;37m- - -<ESC>[1;32m[<mpelm v=4424 r="A cleverly roofed-over glade." t="Grasslands"><ESC>[1;37me</mpelm><ESC>[1;32m]<ESC>[0;37m <CR><LF>
0.0000 | \ / | \ / / <ESC>[1;31m|<ESC>[0;37m <CR><LF>
0.0000 | <ESC>[0;32m[<mpelm v=4412 r="In the shadow of the Great Oak." t="Forest"><ESC>[1;35m^</mpelm><ESC>[0;32m]<ESC>[0;37m-<ESC>[0;32m[<mpelm v=4413 r="Among dominating roots of the Great Oak." t="Forest"><ESC>[1;35m^</mpelm><ESC>[0;32m]<ESC>[0;37m \ <ESC>[0;36m[<mpelm v=4300 r="Chamber of Winter." t="Village"><ESC>[0;30m </mpelm><ESC>[0;36m]<ESC>[0;37m <ESC>[0;36m[<mpelm v=4299 r="Top of the Golden Stair." t="Village"><ESC>[1;35m_</mpelm><ESC>[0;36m]<ESC>[0;37m <ESC>[0;36m[<mpelm v=4298 r="Chamber of Spring." t="Village"><ESC>[0;30m </mpelm><ESC>[0;36m]<ESC>[0;37m / / <CR><LF>
0.0000 | <CR><LF>
0.0000 | <ESC>[0;36m[<mpelm v=4387 r="At the base of a large sequoia." t="Village"><ESC>[1;35m^</mpelm><ESC>[0;36m]<ESC>[0;37m \ / / <CR><LF>
0.0000 | / \ / <CR><LF>
0.0000 | <ESC>[0;32m[<mpelm v=4416 r="Before the Emerald Circle." t="Forest"><ESC>[0;30m </mpelm><ESC>[0;32m]<ESC>[0;37m-<ESC>[0;32m[<mpelm v=4425 r="The Emerald Circle." t="Forest"><ESC>[0;30m </mpelm><ESC>[0;32m]<ESC>[0;37m / <CR><LF>
0.0000 | | | <ESC>[1;31m\<ESC>[0;37m <CR><LF>
0.0000 | \--Time: 327 usec-------------------------------------/<CR><LF>
0.0000 | <ESC>[5z<ESC>[0;32mH:5500 M:5200 <ESC>[1;31mB:100% <ESC>[0;37mXP:29% [csdb eb]<IAC><EOR>
|
Gets logged as.
Code: |
/--Ancient Heartwood.--------------------------v4295--\
[_]
[ ]-[^]-[o]
|
[ ] [_]
| |
[ ]- - - -[ ]- - -[ ]
/ \ \
/ [ ] [_] [*] \ \
\ / \ / \ \
[_]-[_] [_]- - - -[¥]-[^] -[ ]- - -[e]
\ / | \ / / |
[^]-[^] \ [ ] [_] [ ] / /
[^] \ / /
/ \ /
[ ]-[ ] /
| | \
\--Time: 399 usec-------------------------------------/ |
basicly none of the spaces are logged?[/code]
and yes I'm aware the time doesn't match used two map commands. |
|
|
|
XonDK Apprentice
Joined: 01 Dec 2006 Posts: 178
|
Posted: Fri May 14, 2010 9:31 pm |
I've tested it with and without the mxp and it still doesn't log spacing :(
However if I turn html logging off, it will log spacing. |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Fri May 14, 2010 10:21 pm |
As mentioned elsewhere HTML does not as a rule honor regular spaces.
If you want to keep the log looking spiffy try something like a space replacement.
Someone recently mentioned using a # with both the fore and background font being the same color as the background. |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Fri May 14, 2010 10:37 pm |
That was me. Look at my post titled "HTML Log". I already brought this up.
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: Sat May 15, 2010 2:14 am |
will it retain the nobreak space? alt+0160
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon May 17, 2010 5:03 pm |
The spaces *should* get logged. The issue with spaces is that if you view your HTML file in a web browser, the browser will combine multiple spaces into one.
If you are saying that the spaces are not written to the file at all then I'm perplexed because my HTML log files here have spaces in it just like it should. |
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Wed May 19, 2010 8:46 am |
The real problem is that for the purpose of logging in HTML mode, the spaces need to be written as non-breaking spaces and not actual spaces like I mentioned in my other post. That's second of the two uses for the HTML character entity. The other one you brought up in my other post, which of course is to stop the browser from breaking a line in the wrong place.
From W3C:
Quote: |
Non-breaking Space
The most common character entity in HTML is the non-breaking space.
Normally HTML will truncate spaces in your text. If you write 10 spaces in your text HTML will remove 9 of them. To add lots of spaces to your text, use the character entity. |
So basically if you have multiple spaces logged they need to be translated to non-breaking spaces or HTML will just truncate them all to a single space like you said and just like was said above.
Edit: In the mean time, you can just add a filler for any subs or prints with multiple spaces as I mentioned in my other post HTML Log
However, that still doesn't help with text coming from the MUD that has multiple spaces like the MAP lines. You can't sub everything. |
|
|
|
XonDK Apprentice
Joined: 01 Dec 2006 Posts: 178
|
Posted: Sun May 23, 2010 10:25 am |
an option to make it add the on spaces would be nice rather then spaces getting killed.
Unless it would be too hard to implement. |
|
|
|
|
|