Skip to content
Permalink
Browse files

DW API Anpassung

  • Loading branch information...
gamma committed Feb 11, 2019
1 parent 273152e commit ef3f4018783b0d92d7968dc08f8c9d09cd02de09
Showing with 4 additions and 3 deletions.
  1. +4 −3 renderer/pdf.php
@@ -141,7 +141,7 @@ public function header($text, $level, $pos) {
$class = array();
if ($INFO['perm'] > AUTH_READ &&
$level <= $conf['maxseclevel']) {
$class[] = $this->startSectionEdit($pos, 'section', $text);
$class[] = $this->startSectionEdit($pos, array( 'target' => 'section', 'name' => $text ) );
}
if ( !empty($headingNumber) ) {
@@ -169,7 +169,8 @@ public function header($text, $level, $pos) {
// write the header
$name = rand() . $level;
$this->doc .= DOKU_LF.'<a name="'. $this->startSectionEdit($pos, 'section_empty', $name) .'" class="' . $this->startSectionEdit($pos, 'section_empty', $name) . '" ></a>'.DOKU_LF;
$sectionEdit = $this->startSectionEdit($pos, array( 'target' => 'section_empty', 'name' => $name));
$this->doc .= DOKU_LF.'<a name="'. $sectionEdit .'" class="' . $sectionEdit . '" ></a>'.DOKU_LF;
}
$this->hasSeenHeader = true;
@@ -199,7 +200,7 @@ public function finishSectionEdit($end = null, $hid = null) {
/**
* @param string $type
*/
public function startSectionEdit($start, $type, $title = null, $hid = null) {
public function startSectionEdit($start, $data) {
return '';
}

0 comments on commit ef3f401

Please sign in to comment.
You can’t perform that action at this time.