aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2018-01-22 09:47:19 +0100
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2018-01-22 09:47:19 +0100
commitac83059682dc715ed4c6f6103f0ec51627d97d5e (patch)
tree4029a433f1310674eb5eb15aada9065b1f77d5dc
parent4ce04f8736ecb18e502fa3c355dd7bb78bfb5b30 (diff)
downloadlibrb-ac83059682dc715ed4c6f6103f0ec51627d97d5e.tar.gz
librb-ac83059682dc715ed4c6f6103f0ec51627d97d5e.tar.bz2
librb-ac83059682dc715ed4c6f6103f0ec51627d97d5e.zip
change: make table of content use ul instead of li in man2html
-rwxr-xr-xman2html.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/man2html.sh b/man2html.sh
index 46f431e..d5566ca 100755
--- a/man2html.sh
+++ b/man2html.sh
@@ -38,6 +38,10 @@ do
## get table of content from file
toc="$(sed -n '/<DL>/,/<\/DL>/p' "${ftmp}")"
+ toc="$(echo "${toc}" | sed 's/DL>/UL>/')"
+ toc="$(echo "${toc}" | sed 's/<DT>/<LI>/')"
+ toc="$(echo "${toc}" | sed 's/<DD>/<\/LI>/')"
+
## put table of content and first two lines into file and append hr
{ echo -e "${tmp}\n${toc}\n<HR>"; cat "${ftmp}"; } > tmp; mv tmp "${ftmp}"