mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-18 17:17:02 +00:00

After looking into it some more, I think I've figured out how to handle <pre> in the CSS. So, use that, when description has more than one line. Also, go to re.sub for turning URLs into links. The version of Python I was testing my code on wasn't properly handling backreferences in the replacement string when in the form "\#", causing me to use finditer instead of sub. But I've discovered that it does handle backreferences in the form "\g<#>". So switch to much simpler re.sub code.