Commit 60a1643 jburov
committed
1 parent 35892d8 commit 60a1643 Copy full SHA for 60a1643
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,15 +66,14 @@ public function generateFootnotes($params, $pObj)
66
66
{
67
67
// init vars
68
68
$ patternFootnoteAnchors = '/<sup[ ]+class="t3foonote">(?:.(?!\<\/sup\>))*.<\/sup>/i ' ;
69
- $ patternDataAttrFootnoteAnchor = '/(<span[ ]+class="t3foonotes-anchor-data".*>)((?:.(?!\<\/span\>))*.)(<\/span>)/i ' ;
69
+ $ patternDataAttrFootnoteAnchor = '/(<span[ ]+class="t3foonotes-anchor-data".*? >)((?:.(?!\<\/span\>))*.)(<\/span>)/i ' ;
70
70
$ tempMarkerAnchor = '#########SUP######### ' ;
71
71
$ patterntempMarkerAnchor = '/ ' . $ tempMarkerAnchor . '/ ' ;
72
72
$ matchesFootnoteData = [];
73
73
$ footnotes = [];
74
74
75
75
$ footnoteAnchors = $ this ->getFootnotesAnchors ($ patternFootnoteAnchors , $ pObj );
76
76
77
-
78
77
// if found footnotes anchors process build footnotes
79
78
if ($ footnoteAnchors ) {
80
79
@@ -91,7 +90,8 @@ public function generateFootnotes($params, $pObj)
91
90
preg_match ($ patternDataAttrFootnoteAnchor , $ footnoteAnchor , $ matchesFootnoteData );
92
91
93
92
if (sizeof ($ matchesFootnoteData ) == 4 ) {
94
- $ footnotes [] = ['data ' => $ matchesFootnoteData [2 ], 'nr ' => $ nr ];
93
+ $ footnoteContent = $ matchesFootnoteData [2 ];
94
+ $ footnotes [] = ['data ' => $ footnoteContent , 'nr ' => $ nr ];
95
95
$ footnoteAnchor = preg_replace ($ patternDataAttrFootnoteAnchor , '' , $ footnoteAnchor );
96
96
}
97
97
You can’t perform that action at this time.
0 commit comments