Message:

   The following issue has been closed.

   Resolver: Ross Gardler
       Date: Tue, 29 Mar 2005 10:33 AM

- renamed the class to pagebreakAfter
- added class pagebreakBefore
- added FAQ entry
---------------------------------------------------------------------
View the issue:
  http://issues.cocoondev.org//browse/FOR-402

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: FOR-402
    Summary: Specify page breaks in XML source
       Type: New Feature

     Status: Closed
   Priority: Trivial
 Resolution: FIXED

    Project: Forrest
 Components: 
             Skins (general issues)
   Fix Fors:
             0.7-dev
   Versions:
             0.7-dev

   Assignee: Ross Gardler
   Reporter: Ross Gardler

    Created: Fri, 3 Dec 2004 8:23 AM
    Updated: Tue, 29 Mar 2005 10:33 AM

Description:
>From a mail to the users list by Jacques, Olivier (OCBU-Test Infra):

> As per suggested in the documentation, here is why I wanted to create a new 
> skin: insert page breaks at certain points in the document.
> This is done using CSS with the attribute: "page-break-before: always"
> So I did, in "mytigris.css":
> h3, h4 {
>  margin-bottom: 0;
>  page-break-before: always;
> }
>  
> It would be great to have this hability from within the document XML source.


Yes, I have often thought this (although in my case it is for PDF output I want 
control).

You can do this in HTML without the need to create a new skin by using classes:

For example:

<h1 class="pageBreakBefore">

Then in skinconf.xml <extra-css> you put:

.pageBreakBefore {
 margin-bottom: 0;
 page-break-before: always;
}

To respect those classes in PDF will require changes in the Formatting Object 
stylesheets. I think this an excellent enhancement so I will add it to the 
issue tracker.

Ross 


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.cocoondev.org//secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

Reply via email to