From d3bb3ca687a74af9109d64301233c04d98608b12 Mon Sep 17 00:00:00 2001 From: Ondrej Vasik Date: Jul 13 2010 06:58:48 +0000 Subject: workaround passivetex limitation for chapter titles starting with L(#526273) git-svn-id: https://svn.fedorahosted.org/svn/xmlto@51 eb1b79c1-ba03-4820-82f3-b60cf523859b --- diff --git a/ChangeLog b/ChangeLog index c942b75..a2670a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-07-13 Ondrej Vasik + * format/fo/{ps,dvi,pdf}: workaround passivetex limitation + for chapters titles starting with L (rhbz#526273) + 2009-09-18 Ondrej Vasik * configure.in: Do not hardcode /bin/bash default path, add support for detection of tail and gnu cp @@ -8,7 +12,7 @@ instead of `which` for detection of file availability, do not use autodetected papersize when --noautosize option is specified. - * format/*: use detected gnu cp instead of hardcoded + * format/*: use detected gnu cp instead of hardcoded cp, use `type -t` instead of `which` for detection of file availability. diff --git a/format/fo/dvi b/format/fo/dvi index a9af333..f294153 100755 --- a/format/fo/dvi +++ b/format/fo/dvi @@ -12,8 +12,11 @@ post-process) exit 3 fi # Work around stupid tetex bug with '_' in filenames - # Also work around stupid tetex limitation with long lines (bug #101055) - sed -e "s,/>,\n/>,g" "$XSLT_PROCESSED" >tmp.fo + # Also work around stupid tetex limitation with long lines (rhbz #101055) + # and workaround passivetex limitation for chapter titles starting with L + # (rhbz #526273) + sed -e "s,/>,/>\n,g" \ + -e "s,block>,&\n,g" "$XSLT_PROCESSED" >tmp.fo OUT=output TEXINPUTS="$(dirname "$INPUT_FILE")::$SEARCHPATH" export TEXINPUTS diff --git a/format/fo/pdf b/format/fo/pdf index aa967aa..ceacc32 100755 --- a/format/fo/pdf +++ b/format/fo/pdf @@ -14,8 +14,11 @@ DEFAULT|DBLATEX) exit 3 fi # Work around stupid tetex bug with '_' in filenames - # Also work around stupid tetex limitation with long lines (bug #101055) - sed -e "s,/>,\n/>,g" "$XSLT_PROCESSED" >tmp.fo + # Also work around stupid tetex limitation with long lines + # (rhbz #101055) and workaround passivetex limitation for chapter + # titles starting with L (rhbz #526273) + sed -e "s,/>,/>\n,g" \ + -e "s,block>,&\n,g" "$XSLT_PROCESSED" >tmp.fo OUT=output TEXINPUTS="$(dirname "$INPUT_FILE")::$SEARCHPATH" export TEXINPUTS diff --git a/format/fo/ps b/format/fo/ps index b40ad77..738b3b6 100755 --- a/format/fo/ps +++ b/format/fo/ps @@ -9,8 +9,12 @@ DEFAULT|DBLATEX) echo >&2 "Post-process XSL-FO to DVI" fi # Work around stupid tetex bug with '_' in filenames - # Also work around stupid tetex limitation with long lines (bug #101055) - sed -e "s,/>,\n/>,g" "$XSLT_PROCESSED" >tmp.fo + # Also work around stupid tetex limitation with long lines + # (rhbz #101055) and workaround passivetex limitation for chapter + # titles starting with L (rhbz #526273) + sed -e "s,/>,/>\n,g" \ + -e "s,block>,&\n,g" "$XSLT_PROCESSED" >tmp.fo + OUT=output TEXINPUTS="$(dirname "$INPUT_FILE")::$SEARCHPATH" export TEXINPUTS