<?php if (!defined('PmWiki')) exit() ; #--------------------------------------------------------------------------------------------------- /* This file is SimlifiedAdvancedTableDirectives.php. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation http://www.fsf.org either version 2 of the License, or (at your option) any later version. Copyright 2007, 2024 GNUZoo http://www.pmwiki.org/wiki/Profiles/GNUZoo */ #--------------------------------------------------------------------------------------------------- $RecipeInfo['SourceCodeHorizontalLines']['Version'] = '2.0' ; #--------------------------------------------------------------------------------------------------- switch ($action) { case "edit" : if (! @$_POST['preview']) break ; case "browse" : case "print" : SDV($SCHLinesAllowWhitespace, false) ; Markup('SCHLines' , 'fulltext', '/^-----+/', '') ; Markup('SCHLinesWS', 'fulltext', '/(^[ \t]*-----+[ \t]*$)/', "SCHLinesWS") ; } #--------------------------------------------------------------------------------------------------- function SCHLinesWS($m) { global $SCHLinesAllowWhitespace ; return $SCHLinesAllowWhitespace ? '' : $m[1] ; } #---------------------------------------------------------------------------------------------------