Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 36541 invoked from network); 12 Oct 2006 19:52:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Oct 2006 19:52:22 -0000 Received: (qmail 21370 invoked by uid 500); 12 Oct 2006 19:52:22 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 21330 invoked by uid 500); 12 Oct 2006 19:52:21 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 21321 invoked by uid 99); 12 Oct 2006 19:52:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Oct 2006 12:52:21 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Oct 2006 12:52:20 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C71987142E0 for ; Thu, 12 Oct 2006 12:51:37 -0700 (PDT) Message-ID: <28272881.1160682697813.JavaMail.jira@brutus> Date: Thu, 12 Oct 2006 12:51:37 -0700 (PDT) From: "Kim Haase (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Reopened: (DERBY-408) Fix formatting of manuals in PDF output In-Reply-To: <1144815032.1120080358591.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-408?page=all ] Kim Haase reopened DERBY-408: ----------------------------- I'm very grateful for these fixes. However, I believe that the fix to the part of the bug that involves line breaks has introduced another somewhat subtle bug. If the line breaks within a tag aren't contained by other formatting tags (, for example), the line breaks are ignored in PDF and monohtml generation, though they are preserved in HTML generation. For example, in the file src/getstart/rgsdocs10012.dita, the codeblock (on two lines) is formatted like this.

An example of how SQL syntax is presented: CREATE [ UNIQUE ] INDEX IndexName ON TableName ( SimpleColumnName [ , SimpleColumnName ] * )

The output looks like this in HTML, monohtml, and PDF (it's in the "SQL syntax" section), preserving the line break and indent before ON: CREATE [ UNIQUE ] INDEX IndexName ON TableName ( SimpleColumnName [ , SimpleColumnName ] * ) The reason it works in all formats is that all the text within the codeblock is contained by the tags at the beginning and end, even though there are also a number of tags within. If I change this codeblock to remove any formatting at the line break -- note the closing
tag at the end of the first line and the starting tag on the second --

An example of how SQL syntax is presented: CREATE [ UNIQUE ] INDEX IndexName ON TableName ( SimpleColumnName [ , SimpleColumnName ] * )

the line break is not preserved in the PDF and monohtml, and the output looks like this: CREATE [ UNIQUE ] INDEX IndexNameON TableName ( SimpleColumnName [ , SimpleColumnName ] * ) The Working With Derby book contains a lot of codeblocks that contain unformatted line breaks. For example, in twwdactivity1.dita, the empty line here is intentional and shows up correctly in the HTML:
java -jar %DERBY_HOME%\lib\derbyrun.jar ij ij version
In the PDF and monohtml, we get java -jar %DERBY_HOME%\lib\derbyrun.jar ijij version 10.2 You can compare http://db.apache.org/derby/docs/10.2/workingwithderby/workingwithderby-single.html with http://db.apache.org/derby/docs/10.2/workingwithderby/index.html to see several instances of the problem. A stopgap solution would be to fix codeblocks to remove unformatted line breaks. It would be better to fix the PDF/monohtml generation, though, if possible. > Fix formatting of manuals in PDF output > --------------------------------------- > > Key: DERBY-408 > URL: http://issues.apache.org/jira/browse/DERBY-408 > Project: Derby > Issue Type: Bug > Components: Documentation > Environment: all > Reporter: Jeff Levitt > Assigned To: Andrew McIntyre > Priority: Minor > Fix For: 10.3.0.0 > > Attachments: derby-408.diff > > > 1. The syntax boxes in many of the Derby manuals seem to output with extra End-of-line feeds in the PDF's. Some syntax boxes print one word per line. For example: > http://incubator.apache.org/derby/docs/tools/tools-single.html#rtoolsijpropref10135 > This might be a bug with the DITA toolkit, because the DITA source files dont have these End-of-line feeds in them. > This bug was originally reported in the doc reviews for version 10.1: > http://issues.apache.org/jira/browse/DERBY-383 > (see Myrna's comments) > 2. Based on http://issues.apache.org/jira/browse/DERBY-384 comments to the doc review (see Sunitha's comments), we need to figure out how to et the table numbers to ascend. Currently, they all output as table 1. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira