about summary refs log tree commit diff
path: root/xmandoc
diff options
context:
space:
mode:
Diffstat (limited to 'xmandoc')
-rwxr-xr-xxmandoc1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmandoc b/xmandoc
index 1261108..eddd672 100755
--- a/xmandoc
+++ b/xmandoc
@@ -4,5 +4,6 @@
 xlocate "man/man..\?/$1\.[0-9]" 2>/dev/null | 
 	{ grep . || { echo "xmandoc: No entry for $1 found." 1>&2; exit 1; } } |
 	while read -r pkg page; do
+		page=${page#* -> }
 		xbps-query --cat=$page ${pkg%-*} | mandoc -a
 	done