Differences From
Artifact [132a7e50b4]:
42 42 descline=$(echo "$dhead" | cut -d: -f1)
43 43 offset=1
44 44 else
45 45 descline=$(grep -m2 -n "^#" "$file" | tail -n1 | cut -d: -f1)
46 46 offset=0
47 47 fi
48 48
49 -tail -n+2 $file | head -n$(expr $descline - 2) | cmark -t man >>"$fmt"
49 +tail -n+2 $file | head -n$(expr $descline - 2) | cmark --smart -t man >>"$fmt"
50 50
51 51 echo >>"$fmt" ".SH DESCRIPTION"
52 52
53 -tail -n+$(expr $descline + $offset) "$file" | cmark -t man >> "$fmt"
53 +tail -n+$(expr $descline + $offset) "$file" | cmark --smart --normalize -t man >> "$fmt"
54 54
55 55 test "$doc_html" = "yes" && {
56 56 mkdir -p "$htmldest"
57 57 groff -Thtml -Kutf8 -m man "$fmt" > "$html"
58 58 test "$verbose" != "loud" ||
59 59 say "wrote html page for $stem to $html"
60 60 }