includes/wikiengine/render_xhtml.php
changeset 1044 ad6a22377507
parent 1027 98c052fc3337
child 1073 b19a9bcb6a45
equal deleted inserted replaced
1043:ac1ecaacb48e 1044:ad6a22377507
    58         case 'indent':
    58         case 'indent':
    59           $btag = 'dl';
    59           $btag = 'dl';
    60           $itag = 'dd';
    60           $itag = 'dd';
    61           break;
    61           break;
    62       }
    62       }
    63       $list = "<$btag><_paragraph_bypass>\n";
    63       $list = "<$btag>\n";
    64       $spacing = '';
    64       $spacing = '';
    65       $depth = 1;
    65       $depth = 1;
    66       foreach ( $piece['items'] as $j => $item )
    66       foreach ( $piece['items'] as $j => $item )
    67       {
    67       {
    68         // most of this just goes into pretty formatting.
    68         // most of this just goes into pretty formatting.
   106         $spacing = substr($spacing, 4);
   106         $spacing = substr($spacing, 4);
   107         $list .= "{$spacing}</$itag>\n";
   107         $list .= "{$spacing}</$itag>\n";
   108         $spacing = substr($spacing, 4);
   108         $spacing = substr($spacing, 4);
   109         $depth--;
   109         $depth--;
   110       }
   110       }
   111       $list .= "</_paragraph_bypass></$btag>\n";
   111       $list .= "</$btag>\n";
   112       $text = str_replace(Carpenter::generate_token($i), $list, $text);
   112       $text = str_replace(Carpenter::generate_token($i), $list, $text);
   113     }
   113     }
   114     return $text;
   114     return $text;
   115   }
   115   }
   116   
   116