| @@ 110-114 (lines=5) @@ | ||
| 107 | {
|
|
| 108 | $p = EMTLib::strpos_ex($textx, array("«", "»"), $off);
|
|
| 109 | if($p===false) break; |
|
| 110 | if($p['str'] == "«") |
|
| 111 | {
|
|
| 112 | if($level>0) if(!$this->is_on('no_bdquotes')) $this->inject_in($p['pos'], self::QUOTE_CRAWSE_OPEN, $textx);
|
|
| 113 | $level++; |
|
| 114 | } |
|
| 115 | if($p['str'] == "»") |
|
| 116 | {
|
|
| 117 | $level--; |
|
| @@ 115-119 (lines=5) @@ | ||
| 112 | if($level>0) if(!$this->is_on('no_bdquotes')) $this->inject_in($p['pos'], self::QUOTE_CRAWSE_OPEN, $textx);
|
|
| 113 | $level++; |
|
| 114 | } |
|
| 115 | if($p['str'] == "»") |
|
| 116 | {
|
|
| 117 | $level--; |
|
| 118 | if($level>0) if(!$this->is_on('no_bdquotes')) $this->inject_in($p['pos'], self::QUOTE_CRAWSE_CLOSE, $textx);
|
|
| 119 | } |
|
| 120 | $off = $p['pos']+strlen($p['str']); |
|
| 121 | if($level == 0) |
|
| 122 | {
|
|