Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
pagedjs
pagedjs
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 144
    • Issues 144
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 8
    • Merge Requests 8
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Tools
  • pagedjspagedjs
  • Issues
  • #135

Closed
Open
Opened Aug 20, 2019 by Erik Schilling@ablu
  • Report abuse
  • New issue
Report abuse New issue

Cannot surpress line break after `thead`

Example HTML:

<html>
<head></head>
<style>
@media print {
  @page {
    size: A4;
  }

  thead {
    break-after: avoid;
  }
}
</style>
</head>
<body>
  <p>foo</p>
  <p>foo</p>
  <p>foo</p>
  <p>foo</p>
  <p>foo</p>
  <p>foo</p>
  <p>foo</p>
  <p>foo</p>
  <p>foo</p>
  <p>foo</p>
  <p>foo</p>
  <p>foo</p>
  <p>foo</p>
  <p>foo</p>
  <p>foo</p>
  <p>foo</p>
  <p>foo</p>
  <p>foo</p>
  <p>foo</p>
  <p>foo</p>
  <p>foo</p>
  <p>foo</p>
  <p>foo</p>
  <p>foo</p>
  <p>foo</p>
  <p>foo</p>
<table>
  <thead>
    <tr>
    <th>a</th>
    <th>b</th>
    <th>c</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><p>a</p></td>
      <td><p>b</p></td>
      <td><p>c</p></td>
    </tr>
    <tr>
      <td><p>a</p></td>
      <td><p>b</p></td>
      <td><p>c</p></td>
    </tr>
  </tbody>
</table>
</div>
</body>
</html>

Rendered to pdf using the pagedjs-cli.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
1
Labels
break-after: avoid
Assign labels
  • View project labels
Reference: tools/pagedjs#135