OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] programlistings, double spaced?


Hi again Dave

Have a look at: http://www.gnu.org/software/emacs/manual/html_node/emacs/Text-and-Binary.html

I don't use emacs myself, made a little script for conversions, but the pager seems to be the place.

/Niels

On Apr 30, 2011, at 12:42 PM, Dave Pawson wrote:

> On Sat, 30 Apr 2011 11:27:57 +0100
> Dave Pawson <davep@dpawson.co.uk> wrote:
> 
>> 
>> 
>> I'm using programlisting, with xincluded content.
>> What is already a long listing is now double spaced when
>> I look at the PDF output (docbook 5).
>> 
>> Anyone resolved this please?
>> 
>> The fo is
>> 
>> &lt;?xml version="1.0" encoding="utf-8"?&gt;&#xD;
>> &lt;fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"&gt;&#xD;
>> &#xD;
>>  &lt;fo:layout-master-set&gt;       &#xD;
>>    &lt;!--  --&gt;&#xD;
>>    &lt;!-- Page descriptions --&gt;&#xD;
>>    &lt;!-- SPM 1, basic page  All regions
>> present--&gt;                        &#xD; &lt;fo:simple-page-master
>> &#xD;
>> 
>> Note the (additional I think) & # x D ; at each line end?
>> 
>> How to get rid of these?
>> Linux based if it makes a difference.
> 
> Yes, it does make a difference?
> I'm on Linux, but using emacs a new file comes up in DOS ...
> mode/encoding?
> C-x RET f unix changes the file to a Linux file....
> and the & # x D ;  disappear and the programlisting 
> is nicely displayed!
> 
> How to persuade emacs to generate unix encoding for new files anyone?
> 
> 
> 
> -- 
> 
> regards 
> 
> -- 
> Dave Pawson
> XSLT XSL-FO FAQ.
> http://www.dpawson.co.uk
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
> 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]