From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) Description of problem: The db2rtf generates an RTF file that when viewed through microsoft word 97 shows one line per page. The db2html and db2pdf are OK. How reproducible: Always Steps to Reproduce: 1.Create a simple book SGML in docbook 2.Run db2rtf on it 3. view the generated RTF in MS Word Additional info:
Please send me an example SGML document, or we might not be looking at the same thing. Thanks.
Created attachment 24887 [details] The sample file that demonstrates the problem and the generated RTF
Thanks. Okay, I see the same thing with MS-Word 2000. It isn't something obvious like unix2dosifying the file; I tried that. Do you know when this last worked, or has it always behaved like this?
Actually I am using the db2xxx for the first time. I have always used openjade -t rtf -d .../print/docbook.dsl myfile.sgml to generate the files. That still works fine. The problem seems to be with db2xxx (the associated stylesheet I guess)
Yes. The stylesheet is /usr/share/sgml/docbook/utils-*/docbook-utils.dsl. If you copy that file to /tmp/style.dsl and take out the section entitled 'Margins' (lines 175-227), and use db2rtf -d /tmp/style.dsl ..., does that work any better?
After some experimentation, it seems that this bit is the problem: ;;How big do you want the margin at the bottom? (define %bottom-margin% (if (equal? %visual-acuity% "large-type") 7.5pi 2pi)) If I take that out, it works fine.
Of course taking that out produces a rather large margin at the bottom of postscript files :\ - still, better than breakage I suppose.
But bizarrely, if I change it to 9.5pi/8pi (from print/dbparam.dsl) rather than removing it altogether, it _still_ breaks. Why would that be?
but if you remove it altogether it should default to what is in print/dbparam.dsl - are you sure it is not broken without it? Otherwise I would think that there is a bug in Norman's code which allows for these overrides to happen. I will ask him about it - we can remove for the release.
I must have done something wrong before; you're right, there is no difference if overridden or not. Changing the '2pi' to '5pi' is sufficient to fix the problem, so I think I'll do that.
yeah - that looks all right to me
That change is in docbook-utils-0.6.9-2.