Create account / Log in

v3.5.5 spurious spacing in html chat

Issues with the Vassal engine.

Moderators: uckelman, Tim M

v3.5.5 spurious spacing in html chat

Postby marktb1961 » May 12th, 2021, 12:26 am

Sometimes, html chat line will include a spurious tab or spaces that subsequently clear when a new line of input is received.
This seems to happens with report lines that include the <img> tag.

Example below shows appearance of the spurious spacing in the "Allies Turn" line, before and after a new line of input....

chat spurious tab.jpg
chat spurious tab.jpg (34.34 KiB) Viewed 415 times
Platform: Vassal 3.5.7, MacOS Big Sur on iMac (27", mid-2020)
User avatar
marktb1961
 
Posts: 606
Joined: October 4th, 2018, 2:36 pm
Location: Liverpool, England

Re: v3.5.5 spurious spacing in html chat

Postby Cattlesquat » May 12th, 2021, 1:26 am

Mostly we're just dumping the line straight into Java Swing's HTML auto-magic-parser thing. (Which is a fairly old and rudimentary version of HTML unfortunately).

Out of curiousity, what was the true original text of that "Allies Turn" line?

Brian
User avatar
Cattlesquat
 
Posts: 1141
Joined: December 2nd, 2019, 4:57 pm
Location: Baltimore, Maryland, USA

Re: v3.5.5 spurious spacing in html chat

Postby marktb1961 » May 12th, 2021, 6:44 am

Cattlesquat wrote:Out of curiousity, what was the true original text of that "Allies Turn" line?


Code: Select all
<img src="Wellington by Goya size60.jpg" width=19.8 height=22> <font color=#d20001><b>*** Allies Turn ***</b></font>
Platform: Vassal 3.5.7, MacOS Big Sur on iMac (27", mid-2020)
User avatar
marktb1961
 
Posts: 606
Joined: October 4th, 2018, 2:36 pm
Location: Liverpool, England

Re: v3.5.5 spurious spacing in html chat

Postby Cattlesquat » May 12th, 2021, 3:01 pm

I wonder if moving that space from before <font to right before the first * would make any difference? (Not that I think it really *should*)
User avatar
Cattlesquat
 
Posts: 1141
Joined: December 2nd, 2019, 4:57 pm
Location: Baltimore, Maryland, USA

Re: v3.5.5 spurious spacing in html chat

Postby marktb1961 » May 12th, 2021, 10:27 pm

Cattlesquat wrote:I wonder if moving that space from before <font to right before the first * would make any difference? (Not that I think it really *should*)


hmm... well, that seems to have fixed the issue, unless there's some transient weirdness going on. Thanks Brian!
Platform: Vassal 3.5.7, MacOS Big Sur on iMac (27", mid-2020)
User avatar
marktb1961
 
Posts: 606
Joined: October 4th, 2018, 2:36 pm
Location: Liverpool, England


Return to Technical Support & Bugs

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 3 guests