mirror of
https://github.com/there4/markdown-resume.git
synced 2024-12-03 08:59:35 -05:00
Fix PDF css
pdf class was not added to body on pdf command
This commit is contained in:
parent
317f33e33c
commit
4418c0c558
@ -98,7 +98,7 @@ class PdfCommand extends HtmlCommand
|
||||
// to our html document
|
||||
$simpleDom = HtmlDomParser::str_get_html($rendered);
|
||||
$body = $simpleDom->find('body', 0);
|
||||
$body->class = $body->class . ' pdf';
|
||||
$body->setAttribute('class', $body->getAttribute('class') . ' pdf');
|
||||
$rendered = (string) $simpleDom;
|
||||
|
||||
// Save to a temp destination for the pdf renderer to use
|
||||
|
Loading…
x
Reference in New Issue
Block a user