diff -crB definitions/syntax.php definitions-ng/syntax.php
*** definitions/syntax.php Tue Jun 23 13:50:00 2009
--- definitions-ng/syntax.php Tue Jun 23 14:09:40 2009
***************
*** 130,150 ****
if($mode == 'xhtml'){
if ($data[1] == DOKU_LEXER_ENTER) {
// output starting tag and first term and start description
! $renderer->doc .= "
\n\t- ".$data[0]."
\n\t\t- ";
} else if ($data[1] == DOKU_LEXER_MATCHED){
// close previous description and output term and start another description
if (trim($data[0]) != '') {
! $renderer->doc .= "
\n\t- ".$data[0]."
\n\t\t- ";
}
- else {
- $renderer->doc .= "
\n\t\t- ";
- }
} else if ($data[1] == DOKU_LEXER_UNMATCHED){
// we are inside description, so pass it to renderer unchanged
! $renderer->doc .= ''.$data[0].'';
} else if ($data[1] == DOKU_LEXER_EXIT){
// close last description and close whole block
! $renderer->doc .= "
\n
\n";
}
return true;
}
--- 130,149 ----
if($mode == 'xhtml'){
if ($data[1] == DOKU_LEXER_ENTER) {
// output starting tag and first term and start description
! $renderer->doc .= "\n\t- ".$data[0]."
\n";
} else if ($data[1] == DOKU_LEXER_MATCHED){
// close previous description and output term and start another description
if (trim($data[0]) != '') {
! $renderer->doc .= "\t- ".$data[0]."
\n";
}
} else if ($data[1] == DOKU_LEXER_UNMATCHED){
// we are inside description, so pass it to renderer unchanged
! if (trim($data[0]) != '') {
! $renderer->doc .= "\t\t- ".$data[0]."
\n";
! }
} else if ($data[1] == DOKU_LEXER_EXIT){
// close last description and close whole block
! $renderer->doc .= "
\n";
}
return true;
}