From 54596e2fcd1b8120ff8e5b846342191cc0084137 Mon Sep 17 00:00:00 2001 From: Gabor Kovesdan Date: Mon, 27 Aug 2012 10:15:10 +0000 Subject: [PATCH] - Only drop -raw -preserve tidy flags when the encoding is ISO8859-1. For other encodings, it caused rendering problems. Approved by: doceng (implicit) --- share/mk/doc.docbook.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/share/mk/doc.docbook.mk b/share/mk/doc.docbook.mk index 0876c79115..d999ae9c0d 100644 --- a/share/mk/doc.docbook.mk +++ b/share/mk/doc.docbook.mk @@ -257,7 +257,11 @@ TOUCH?= /usr/bin/touch XARGS?= /usr/bin/xargs GROFF?= groff -TIDYOPTS?= -wrap 90 -m -f /dev/null -asxml ${TIDYFLAGS} +.if empty(LANGCODE:S/./ . /g:MISO8859-1) +TIDYOPTS?= -wrap 90 -m -raw -preserve -f /dev/null -asxml ${TIDYFLAGS} +.else +TIDYOPTS?= -wrap 90 -m -f /dev/null -asxml ${TIDYFLAGS +.endif HTML2TXT?= ${PREFIX}/bin/links HTML2TXTOPTS?= -dump -width 72 ${HTML2TXTFLAGS} HTML2PDB?= ${PREFIX}/bin/iSiloBSD