Skip to content

Commit ab96d81

Browse files
committed
fix: don't include print styles if pdf.less exists
1 parent b227469 commit ab96d81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ protected function css_pluginPDFstyles() {
785785
$list[DOKU_PLUGIN . "$p/all.css"] = DOKU_BASE . "lib/plugins/$p/";
786786
$list[DOKU_PLUGIN . "$p/all.less"] = DOKU_BASE . "lib/plugins/$p/";
787787

788-
if(file_exists(DOKU_PLUGIN . "$p/pdf.css")) {
788+
if(file_exists(DOKU_PLUGIN . "$p/pdf.css") || file_exists(DOKU_PLUGIN . "$p/pdf.less")) {
789789
$list[DOKU_PLUGIN . "$p/pdf.css"] = DOKU_BASE . "lib/plugins/$p/";
790790
$list[DOKU_PLUGIN . "$p/pdf.less"] = DOKU_BASE . "lib/plugins/$p/";
791791
} else {

0 commit comments

Comments
 (0)