-
-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exporting a Note to PDF Does Not Apply userstyle.css #2324
Comments
Thanks @dpoulton-github -- can you supply a minimal example of print css that fails? |
This is an extract from my userstyle.css @media print {
blockquote {
border-left: 4px solid #000000; /* black quote border for printing */
opacity: 1; /* darkens text from default of .7 for printing */
}
code {
font-size: 12px;
color: #000000;
font-weight: bold; /* bold code text for printing */
}
.inline-code {
font-size: 12px;
color: #000000;
border: 0px none; /* removes inline code border for printing */
background: none; /* removes inline code background for printing */
font-weight: bold; /* bold code text for printing */
}
} |
1.0.178 -- confirmed broken on Ubuntu Linux |
@mic704b |
@laurent22 this was tested a while back. Is it possible that this has anything to do with the new renderer? |
Yes, this or the Electron update |
For what it's worth... Not working for me either. v1.0.178 (prod, win32) Windows 10. PDF does not have expected page breaks. This is my note:
This is my userstyle.css: @media print, (overflow-block: paged) or (overflow-block: optional-paged)
{
/* Move top-level headings to a new page on the right-hand side: */
h1
{
page-break-before: right; /* CSS 2 */
break-before: recto; /* CSS 3+,
also works for languages written and paginated right-to-left */
}
/* Override the previous ruleset for the very first heading: */
h1:first-of-type,
section > h1:first-child
{
page-break-before: avoid; /* CSS 2 */
break-before: avoid; /* CSS 3+ */
}
/* Force second-level headings to begin in a new column or
possiblyon a new page if it was in the last of multiple columns otherwise: */
h2
{
break-before: column;
}
/* Headings should not be the last paragraph on a page: */
h1, h2, h3, h4, h5, h6
{
page-break-after: avoid;
}
/* Consecutive headings with deepening level should not be split across pages: */
h1+h2, h2+h3, h3+h4, h4+h5, h5+h6
{
page-break-before: avoid;
}
} |
fwiwi the pdf export function neither works on OSx 10.15.2 (Catalina) my Joplin version is 1.0.178 |
@razlupercio see #2322 |
@mic704b #2322 fixes empty pdf files when exporting. This issue is about export not honoring the |
works!! thank you! really appreciate it! |
As raised in the forum
Environment
Joplin version: 1.0.178
Platform: Windows 10 (1909) x64
Platform: Linux (Mint 19.3) x64
Steps To Reproduce
userstyle.css
with specific settings for print output into the relevant joplin-desktop folder.userstyle.css
Describe what you expected to happen:
The note styles should be modified by
userstyle.css
and this should be reflected in the PDF output.Note: Prior to an upgrade from 1.0.175 to 1.0.178 the custom stylesheet used when discovering this issue worked and had not been modified since.
The text was updated successfully, but these errors were encountered: