Skip to content
  • Bernd Buschinski's avatar
    - rewrite html generation from irc richtexts, · e0821e4f
    Bernd Buschinski authored
    (for the example I will use [b] as irc bold char and [i] as italic char)
    In case we got text like:
    "aaa[b]bbb[i]ccc[b]ddd[i]"
    we used to generate
    "aaa<b>bbb<i>ccc</b>ddd</i>"
    which is invalid HTML, as the italic has to be closed before the bold,
    as expected the result also looked wrong(on the screen).
    What I do now is to remember which tag is open and reopen it,
    so I will generate text like:
    "aaa<b>bbb<i>ccc</i></b><i>ddd</i>".
    -move html stuff out of common.cpp/h
    - support the \x16 reverse char, inverts default fore- and back-ground colors
    e0821e4f