Closed rnpnr closed 4 months ago
I realized that gsub()/gmatch()
worked differently in lua prior to 5.3. I added the 3rd commit with a solution that works for old and new versions (and luajit). If you don't care about support for luajit old versions it can be dropped. Otherwise it can be squashed into the first commit.
Thanks! I'm pretty sure this is actually how I intended it to work. If the file had to have the correct extension anyway, what's the point of srcsection
?
I ended up doing something slightly different than your proposal, but to the same effect. I also pushed a commit allowing you to control man page compression from config.lua
. Hopefully that works for you.
No particular reason for why I wanted this, but I noticed that some code could be removed from gen.lua when I was reviewing. Also the patch no longer needs to be carried here.