sdl2man

converts SDL Wiki pages to manpages
git clone git://nihaljere.xyz/sdl2man
Log | Files | Refs | README

commit 74135a7665c60a7c59d947d83f2ea2e588af9f6d
parent 10558703508d26aa234cc3d56f3138b00c80cfbe
Author: noocsharp@gmail.com <Nihal Jere>
Date:   Wed,  1 Jan 2020 20:34:42 -0600

handles html &gt; and &lt;

Diffstat:
Msdl2man | 2++
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('&quot;', '"', text) text = re.sub('&amp;', '&', text) + text = re.sub('&lt;', '>', text) + text = re.sub('&gt;', '>', 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)