[Commits] [wesnoth/wesnoth] 89ad1b: Rewrite the link detection code

GitHub noreply at github.com
Tue Nov 21 04:44:35 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 89ad1b26764150bdf1c2248cf21c4b1499dc8ed7
      https://github.com/wesnoth/wesnoth/commit/89ad1b26764150bdf1c2248cf21c4b1499dc8ed7
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2017-11-21 (Tue, 21 Nov 2017)

  Changed paths:
    M src/font/pango/hyperlink.hpp
    M src/font/text.cpp
    M src/font/text.hpp

  Log Message:
  -----------
  Rewrite the link detection code

The previous code sometimes produced invalid Pango markup.

Instead of attempting to parse Pango markup, simply scan for links in the
raw text and replace them in Pango markup. This way there is no way to
accidentally break the markup.


  Commit: bc7ce292cd4e018225da1f2f95ee390ffea4f34b
      https://github.com/wesnoth/wesnoth/commit/bc7ce292cd4e018225da1f2f95ee390ffea4f34b
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2017-11-21 (Tue, 21 Nov 2017)

  Changed paths:
    M src/serialization/string_view.hpp

  Log Message:
  -----------
  Attempt to fix build with GCC 4.8


Compare: https://github.com/wesnoth/wesnoth/compare/5703c49ae4a7...bc7ce292cd4e


More information about the Commits mailing list