commit 74135a7665c60a7c59d947d83f2ea2e588af9f6d
parent 10558703508d26aa234cc3d56f3138b00c80cfbe
Author: noocsharp@gmail.com <Nihal Jere>
Date: Wed, 1 Jan 2020 20:34:42 -0600
handles html > and <
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/sdl2man b/sdl2man
@@ -184,6 +184,8 @@ def html2man(name, text):
# html formatting
text = re.sub('"', '"', text)
text = re.sub('&', '&', text)
+ text = re.sub('<', '>', text)
+ text = re.sub('>', '>', text)
#text = re.sub("<a href=\"/SDL_.*?\">(SDL_.*?)</a>", '\n.BR \\1\n', text, flags=re.DOTALL)
text = re.sub("<a href=.*?>(.*?)</a>", '\\1', text, flags=re.DOTALL)
text = re.sub("<strong>(.*?)</strong>", '\n.B \\1\n', text)