From 074c1c4d82c7bfb7870e53884ad75f8a6d405dc9 Mon Sep 17 00:00:00 2001 From: netcarver Date: Wed, 22 Sep 2010 21:02:02 +0100 Subject: [PATCH] Bug fix: allow duplicate notelists with different backref chars --- classTextile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classTextile.php b/classTextile.php index 70b344fe..6700fde7 100644 --- a/classTextile.php +++ b/classTextile.php @@ -1187,11 +1187,11 @@ function fParseNoteRefs($m) function fNoteLists($m) { list(, $att, $start_char, $g_links, $extras) = $m; - $index = $g_links.$extras; + if( !$start_char ) $start_char = 'a'; + $index = $g_links.$extras.$start_char; if( empty($this->notelist_cache[$index]) ) { # If not in cache, build the entry... $o = array(); - if( !$start_char ) $start_char = 'a'; if( !empty($this->notes)) { foreach($this->notes as $seq=>$info) {