summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2022-01-21 14:47:54 +0200
committerTimo Teräs <timo.teras@iki.fi>2022-01-21 14:47:54 +0200
commitb7e3ca22f78c48fa20a5c3156541c51d224164f9 (patch)
tree435be20ffb839df6c15f35449fe53c8beca835c2
parent10d00430636266d7bb70caacbd3e0642b3f70ceb (diff)
downloadapk-tools-b7e3ca22f78c48fa20a5c3156541c51d224164f9.tar.gz
apk-tools-b7e3ca22f78c48fa20a5c3156541c51d224164f9.tar.bz2
apk-tools-b7e3ca22f78c48fa20a5c3156541c51d224164f9.tar.xz
apk-tools-b7e3ca22f78c48fa20a5c3156541c51d224164f9.zip
genhelp: fix upper case substition
-rw-r--r--src/genhelp.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/genhelp.lua b/src/genhelp.lua
index 51f5b73..43910ed 100644
--- a/src/genhelp.lua
+++ b/src/genhelp.lua
@@ -139,7 +139,7 @@ function scdoc:parse_default(ln)
ln = ln:gsub("([^\\])%*(.-[^\\])%*", "%1%2")
ln = ln:gsub("^%*(.-[^\\])%*", "%1")
ln = ln:gsub("([^\\])_(.-[^\\])_", function(a,s) return a..s:upper() end)
- ln = ln:gsub("^_(.-[^\\])_", function(a,s) return a..s:upper() end)
+ ln = ln:gsub("^_(.-[^\\])_", function(s) return s:upper() end)
ln = ln:gsub("\\", "")
self:section_text(ln)