summaryrefslogtreecommitdiff
path: root/inc/parser/parser.php
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-07-01 13:38:25 +0200
committerandi <andi@splitbrain.org>2005-07-01 13:38:25 +0200
commite180595fe57a2a9b8c1e016c5650e7cb88cc9873 (patch)
treee05e08405a1d8072b9643f40617f230cf502c278 /inc/parser/parser.php
parent37065e654096bbf1a82d3bd11d990592b4d4b174 (diff)
downloadrpg-e180595fe57a2a9b8c1e016c5650e7cb88cc9873.tar.gz
rpg-e180595fe57a2a9b8c1e016c5650e7cb88cc9873.tar.bz2
small fix for typographic quotes #415
darcs-hash:20050701113825-9977f-75c85330b6001db24125aabc8bb7f344f0d1ac33.gz
Diffstat (limited to 'inc/parser/parser.php')
-rw-r--r--inc/parser/parser.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/parser/parser.php b/inc/parser/parser.php
index c27648db2..d91b817ff 100644
--- a/inc/parser/parser.php
+++ b/inc/parser/parser.php
@@ -760,7 +760,7 @@ class Doku_Parser_Mode_quotes extends Doku_Parser_Mode {
function connectTo($mode) {
$this->Lexer->addSpecialPattern(
- '(?<=\s)\'(?=\S)',$mode,'singlequoteopening'
+ '(?<=^|\s)\'(?=\S)',$mode,'singlequoteopening'
);
$this->Lexer->addSpecialPattern(
'(?<=^|\S)\'',$mode,'singlequoteclosing'
@@ -769,7 +769,7 @@ class Doku_Parser_Mode_quotes extends Doku_Parser_Mode {
'(?<=^|\s)"(?=\S)',$mode,'doublequoteopening'
);
$this->Lexer->addSpecialPattern(
- '(?<=\S)"',$mode,'doublequoteclosing'
+ '(?<=^|\S)"',$mode,'doublequoteclosing'
);
}