Changeset 30320 for documentation


Ignore:
Timestamp:
11/19/15 10:30:06 (5 years ago)
Author:
jmt12
Message:

Fix for tabbed area being a bit greedy when looking for html comments - eating up not only those between tabs, but also any that appeared in the text and (most problematically) in headings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentation/trunk/wiki/plugins/simpletabs/syntax.php

    r30312 r30320  
    134134    $this->Lexer->addPattern('</TAB>', 'plugin_simpletabs');
    135135    // Hide comments always (sometimes used as separator)
    136     $this->Lexer->addPattern('<!--.*?-->', 'plugin_simpletabs');
     136    $this->Lexer->addPattern('^<!--.*?-->(?=\n)', 'plugin_simpletabs');
    137137    // Special things inside the content we want to manually handle.
    138138    $this->Lexer->addPattern( '^[ \t]*={2,6}\s?[^\n]+={2,6}[ \t]*(?=\n)', 'plugin_simpletabs');
     
    232232                                   'bytepos' => $pos + strlen($match)));
    233233      }
    234       if (preg_match('/<!--(.*)?-->/s', $match, $matches))
     234      if (preg_match('/^<!--(.*)?-->(?=\n)/s', $match, $matches))
    235235      {
    236236          $this->_debugPrint("Handler=>comment: " . htmlspecialchars($matches[1]));
Note: See TracChangeset for help on using the changeset viewer.