mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-10 01:06:20 +02:00
Add vim modelines to all files.
Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
This commit is contained in:
@ -75,7 +75,10 @@ class HTMLPurifier_StringHashParser
|
||||
$line = rtrim($line, "\n\r");
|
||||
if (!$state && $line === '') continue;
|
||||
if ($line === '----') break;
|
||||
if (strncmp('--', $line, 2) === 0) {
|
||||
if (strncmp('--#', $line, 3) === 0) {
|
||||
// Comment
|
||||
continue;
|
||||
} elseif (strncmp('--', $line, 2) === 0) {
|
||||
// Multiline declaration
|
||||
$state = trim($line, '- ');
|
||||
if (!isset($ret[$state])) $ret[$state] = '';
|
||||
@ -103,3 +106,5 @@ class HTMLPurifier_StringHashParser
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// vim: et sw=4 sts=4
|
||||
|
Reference in New Issue
Block a user