Skip to content

Commit 25ad3e4

Browse files
authored
Merge pull request #325 from cosmocode/recognizePdfDotless
Recognize pdf.less and use the style.css of the wrap plugin by default
2 parents b227469 + 03a9508 commit 25ad3e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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 {

conf/default.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
$conf['template'] = 'default';
1010
$conf['output'] = 'file';
1111
$conf['usecache'] = 1;
12-
$conf['usestyles'] = '';
12+
$conf['usestyles'] = 'wrap,';
1313
$conf['qrcodesize'] = '120x120';
1414
$conf['showexportbutton'] = 1;

0 commit comments

Comments
 (0)