5E Character Create Playlist
  1. #1

    Font tags in chat log exports have extra # in color attribute

    Tried to search for this and didn't see it, it's a simple bug that doesn't affect much (and I wouldn't have even noticed if it weren't for it breaking an automated parser I wrote), but the generated log exports are sticking an extra hash (that is, U+0023 NUMBER SIGN, "#") at the beginning of the RGB sequence in the "color" attribute. For example:

    Code:
    <font color="##261A12">Urist: ... Huh.</font><br>
    As per the spec, this is an error, although it seems to render fine and be of little material consequence except, as mentioned, breaking my automated parser.
    Last edited by slitherrr; January 18th, 2022 at 05:59.

  2. #2
    Quote Originally Posted by slitherrr View Post
    Tried to search for this and didn't see it, it's a simple bug that doesn't affect much (and I wouldn't have even noticed if it weren't for it breaking an automated parser I wrote), but the generated log exports are sticking an extra hash (that is, U+0023 NUMBER SIGN, "#") at the beginning of the RGB sequence in the "color" attribute. For example:

    Code:
    <font color="##261A12">Urist: ... Huh.</font><br>
    As per the spec, this is an error, although it seems to render fine and be of little material consequence except, as mentioned, breaking my automated parser.
    I am guessing this is because internally FG fonts have an alpha tag before the RGB numbers. they look like color="AARRGGBB" and the export is just reflecting that.

  3. #3
    Quote Originally Posted by mattekure View Post
    I am guessing this is because internally FG fonts have an alpha tag before the RGB numbers. they look like color="AARRGGBB" and the export is just reflecting that.
    Interesting theory, although it would be strange in context since it used to export as #RRGGBB (which is the correct HTML syntax). I would personally just suspect a typo.

  4. #4
    It looks like it has been that way in FGU since before the official release. I'll push a fix in the next release to remove the extra number sign.

    Regards,
    JPG

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Fallout 3

Log in

Log in