You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by is...@cocoondev.org on 2004/12/03 15:24:29 UTC

[JIRA] Created: (FOR-402) Specify page breaks in XML source

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
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: Unassigned
   Priority: Trivial

    Project: Forrest
   Versions:
             HEAD

   Assignee: 
   Reporter: Ross Gardler

    Created: Fri, 3 Dec 2004 8:23 AM
    Updated: Fri, 3 Dec 2004 8:23 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


[JIRA] Commented: (FOR-402) Specify page breaks in XML source

Posted by is...@cocoondev.org.
The following comment has been added to this issue:

     Author: Dave Brondsema
    Created: Fri, 3 Dec 2004 4:56 PM
       Body:
Try <section class="page"> with no extra-css required.  I think it'll work, but I don't have time to try right now.

This is an undocumented "feature" I put in so that wholesite.pdf could have breaks per-page.  If this works and is useful, we should make the class name more unique, and documente the capability.
---------------------------------------------------------------------
View this comment:
  http://issues.cocoondev.org//browse/FOR-402?page=comments#action_11913

---------------------------------------------------------------------
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: Unassigned
   Priority: Trivial

    Project: Forrest
 Components: 
             Skins (general issues)
   Versions:
             HEAD

   Assignee: 
   Reporter: Ross Gardler

    Created: Fri, 3 Dec 2004 8:23 AM
    Updated: Fri, 3 Dec 2004 4:56 PM

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


[JIRA] Closed: (FOR-402) Specify page breaks in XML source

Posted by is...@cocoondev.org.
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


[JIRA] Updated: (FOR-402) Specify page breaks in XML source

Posted by is...@cocoondev.org.
The following issue has been updated:

    Updater: Ross Gardler (mailto:ross@saafe.org)
       Date: Fri, 3 Dec 2004 8:26 AM
    Changes:
             Component changed to Skins (general issues)
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.cocoondev.org//browse/FOR-402?page=history

---------------------------------------------------------------------
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: Unassigned
   Priority: Trivial

    Project: Forrest
 Components: 
             Skins (general issues)
   Versions:
             HEAD

   Assignee: 
   Reporter: Ross Gardler

    Created: Fri, 3 Dec 2004 8:23 AM
    Updated: Fri, 3 Dec 2004 8:26 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