Bug 11497

Summary: Bad TeX output (double-hyphens)
Product: [Retired] Red Hat Linux Reporter: Tim Waugh <twaugh>
Component: openjadeAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://people.redhat.com/twaugh/docbook/selfdocbook/
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-06-15 17:32:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tim Waugh 2000-05-18 08:23:58 UTC
The following produces an ndash rather than two hyphens, using db2ps:

<!DOCTYPE para PUBLIC "-//OASIS//DTD DocBook V3.1//EN"[]>
<para>
 <programlisting>
  <![CDATA[count--;]]>
 </programlisting>
</para>

The work-around that I'm using is this:

<!DOCTYPE para PUBLIC "-//OASIS//DTD DocBook V3.1//EN"[]>
<para>
 <programlisting>
  <![CDATA[count]]>&mdash;<![CDATA[;]]>
 </programlisting>
</para>

(Obviously it can be done more simply for this small example)

This is a bug in jade since it puts '--' in the TeX output, which of course
is TeX speak for ndash.  It doesn't seem reasonable to do this when in
<programlisting><![CDATA[[...]]></> tags. (I don't fully understand why
&mdash; comes out as two dashes rather than an mdash, either, but at least
it gives me a work-around..)

Comment 1 Tim Waugh 2000-12-08 15:00:52 UTC
*** Bug 21831 has been marked as a duplicate of this bug. ***

Comment 3 Tim Waugh 2001-06-20 10:39:04 UTC
Fixed in openjade-1.3-17.