"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/extrafootnotes.t" between
discount-2.2.3a.tar.bz2 and discount-2.2.4.tar.bz2

About: Discount is an implementation of the "Markdown" markup language (written in C).

extrafootnotes.t  (discount-2.2.3a.tar.bz2):extrafootnotes.t  (discount-2.2.4.tar.bz2)
skipping to change at line 17 skipping to change at line 17
FOOTIE='I haz a footnote[^1] FOOTIE='I haz a footnote[^1]
[^1]: yes?' [^1]: yes?'
try -ffootnote 'footnotes (-ffootnote)' "$FOOTIE" \ try -ffootnote 'footnotes (-ffootnote)' "$FOOTIE" \
'<p>I haz a footnote<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup> </p> '<p>I haz a footnote<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup> </p>
<div class="footnotes"> <div class="footnotes">
<hr/> <hr/>
<ol> <ol>
<li id="fn:1"> <li id="fn:1">
<p>yes?<a href="#fnref:1" rev="footnote">&#8617;</a></p></li> yes?<a href="#fnref:1" rev="footnote">&#8617;</a></li>
</ol> </ol>
</div>' </div>'
try -ffootnote -Cfoot 'footnotes (-ffootnote -Cfoot)' "$FOOTIE" \ try -ffootnote -Cfoot 'footnotes (-ffootnote -Cfoot)' "$FOOTIE" \
'<p>I haz a footnote<sup id="footref:1"><a href="#foot:1" rel="footnote">1</a></ sup></p> '<p>I haz a footnote<sup id="footref:1"><a href="#foot:1" rel="footnote">1</a></ sup></p>
<div class="footnotes"> <div class="footnotes">
<hr/> <hr/>
<ol> <ol>
<li id="foot:1"> <li id="foot:1">
<p>yes?<a href="#footref:1" rev="footnote">&#8617;</a></p></li> yes?<a href="#footref:1" rev="footnote">&#8617;</a></li>
</ol> </ol>
</div>' </div>'
try -fnofootnote 'footnotes (-fnofootnote)' "$FOOTIE" \ try -fnofootnote 'footnotes (-fnofootnote)' "$FOOTIE" \
'<p>I haz a footnote<a href="yes?">^1</a></p>' '<p>I haz a footnote<a href="yes?">^1</a></p>'
TSRC='Alpha[^AlphaF]. TSRC='Alpha[^AlphaF].
Column 1 | Column 2 Column 1 | Column 2
---------------------------------|-------------------------- ---------------------------------|--------------------------
skipping to change at line 65 skipping to change at line 65
<td>Beta<sup id="fnref:2"><a href="#fn:2" rel="footnote">2</a></sup> </td> <td>Beta<sup id="fnref:2"><a href="#fn:2" rel="footnote">2</a></sup> </td>
<td> cell</td> <td> cell</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<div class="footnotes"> <div class="footnotes">
<hr/> <hr/>
<ol> <ol>
<li id="fn:1"> <li id="fn:1">
<p>Alpha Footnote<a href="#fnref:1" rev="footnote">&#8617;</a></p></li> Alpha Footnote<a href="#fnref:1" rev="footnote">&#8617;</a></li>
<li id="fn:2"> <li id="fn:2">
<p>Beta Footnote<a href="#fnref:2" rev="footnote">&#8617;</a></p></li> Beta Footnote<a href="#fnref:2" rev="footnote">&#8617;</a></li>
</ol> </ol>
</div>' </div>'
try -ffootnote 'footnotes inside table elements' "$TSRC" "$TOUT" try -ffootnote 'footnotes inside table elements' "$TSRC" "$TOUT"
TSRC='[Test test[^test]](class:test) TSRC='[Test test[^test]](class:test)
<span class="test"> <span class="test">
Test2[^testtwo] Test2[^testtwo]
</span> </span>
skipping to change at line 105 skipping to change at line 105
<p>Test3<sup id="fnref:3"><a href="#fn:3" rel="footnote">3</a></sup></p> <p>Test3<sup id="fnref:3"><a href="#fn:3" rel="footnote">3</a></sup></p>
<p><span class="test"> <p><span class="test">
Test4<sup id="fnref:4"><a href="#fn:4" rel="footnote">4</a></sup> Test4<sup id="fnref:4"><a href="#fn:4" rel="footnote">4</a></sup>
</span></p> </span></p>
<div class="footnotes"> <div class="footnotes">
<hr/> <hr/>
<ol> <ol>
<li id="fn:1"> <li id="fn:1">
<p>Test footnote<a href="#fnref:1" rev="footnote">&#8617;</a></p></li> Test footnote<a href="#fnref:1" rev="footnote">&#8617;</a></li>
<li id="fn:2"> <li id="fn:2">
<p>Test2 footnote<a href="#fnref:2" rev="footnote">&#8617;</a></p></li> Test2 footnote<a href="#fnref:2" rev="footnote">&#8617;</a></li>
<li id="fn:3"> <li id="fn:3">
<p>Test3 footnote<a href="#fnref:3" rev="footnote">&#8617;</a></p></li> Test3 footnote<a href="#fnref:3" rev="footnote">&#8617;</a></li>
<li id="fn:4"> <li id="fn:4">
<p>Test4 footnote<a href="#fnref:4" rev="footnote">&#8617;</a></p></li> Test4 footnote<a href="#fnref:4" rev="footnote">&#8617;</a></li>
</ol> </ol>
</div>' </div>'
try -ffootnote 'footnotes inside spans' "$TSRC" "$TOUT" try -ffootnote 'footnotes inside spans' "$TSRC" "$TOUT"
for x in tests/data/f??.text;do
result=`echo $x | sed -e 's/.text$/.html/'`
try -ffootnote "`basename $x`" "`cat $x`" "`cat $result`"
done
summary $0 summary $0
exit $rc exit $rc
 End of changes. 9 change blocks. 
8 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)