Warning: Undefined array key "ns" in /customers/3/0/2/riff-raff.se/httpd.www/wiki/conf/local.protected.php on line 47 Warning: Cannot modify header information - headers already sent by (output started at /customers/3/0/2/riff-raff.se/httpd.www/wiki/conf/local.protected.php:47) in /customers/3/0/2/riff-raff.se/httpd.www/wiki/inc/auth.php on line 431 Warning: Cannot modify header information - headers already sent by (output started at /customers/3/0/2/riff-raff.se/httpd.www/wiki/conf/local.protected.php:47) in /customers/3/0/2/riff-raff.se/httpd.www/wiki/inc/actions.php on line 38 DokuWiki-patch: Fotnotpatch - riff-raff
Admin Warning: Undefined array key "REMOTE_USER" in /customers/3/0/2/riff-raff.se/httpd.www/wiki/lib/tpl/old_sic/my_tpl_helper.php on line 77
Warning: Undefined array key "classification" in /customers/3/0/2/riff-raff.se/httpd.www/wiki/lib/tpl/old_sic/my_tpl_helper.php on line 156
Warning: Undefined array key "language" in /customers/3/0/2/riff-raff.se/httpd.www/wiki/lib/tpl/old_sic/my_tpl_helper.php on line 129

DokuWiki-patch: Fotnotpatch

Fil: /inc/parser/xhtml.php

Effekt: Ta bort parentesen i texten vid länken till noten

Funktion: footnote_close() Rad: 291

Ta bort:

$this->doc .= '<a href="#fn__'.$id.'" name="fnt__'.$id.'" id="fnt__'.$id.'" class="fn_top">'.$id.')</a>';

Ersätt med:

$this->doc .= '<a href="#fn__'.$id.'" name="fnt__'.$id.'" id="fnt__'.$id.'" class="fn_top">'.$id.'</a>';

Effekt: ersätt parentesen i själva noten med punkt

Funktion: function document_end() Rad: 68

Ta bort:

$this->doc .= $id.')</a> '.DOKU_LF;

Ersätt med:

$this->doc .= $id.'.</a> '.DOKU_LF;

Effekt: ta bort effekten att likadana noter slås samman

Rad 276–288.

Ersätt

          // check to see if this footnote has been seen before
          $i = array_search($footnote, $this->footnotes);
  
          if ($i === false) {
              // its a new footnote, add it to the $footnotes array
              $id = count($this->footnotes)+1;
              $this->footnotes[count($this->footnotes)] = $footnote;
          } else {
              // seen this one before, translate the index to an id and save a placeholder
              $i++;
              $id = count($this->footnotes)+1;
              $this->footnotes[count($this->footnotes)] = "@@FNT".($i);
          }

med

              // its a new footnote, add it to the $footnotes array
              $id = count($this->footnotes)+1;
              $this->footnotes[count($this->footnotes)] = $footnote;

Rad: 70–79

Ta bort:

  // get any other footnotes that use the same markup
  $alt = array_keys($this->footnotes, "@@FNT$id");

  if (count($alt)) {
    foreach ($alt as $ref) {
    // set anchor and backlink for the other footnotes
      $this->doc .= ', <a href="#fnt__'.($ref+1).'" id="fn__'.($ref+1).'" name="fn__'.($ref+1).'" class="fn_bot">';
      $this->doc .= ($ref+1).')</a> '.DOKU_LF;
    }
  }
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International