When truncating, consider hypens, apostrophes and HTML entities.

This commit is contained in:
Andrea Corbellini 2015-08-19 16:43:59 +02:00
commit 9d0804de7a
10 changed files with 95 additions and 24 deletions

View file

@ -90,7 +90,7 @@
<div class="section" id="testing-another-case">
<h2>Testing another case</h2>
<p>This will now have a line number in 'custom' since it's the default in
pelican.conf, it ...</p></div>
pelican.conf, it will ...</p></div>
<a class="readmore" href="/unbelievable.html">read more</a>
</div><!-- /.entry-content -->
</article></li>

View file

@ -227,7 +227,7 @@ YEAH !</p>
<div class="section" id="testing-another-case">
<h2>Testing another case</h2>
<p>This will now have a line number in 'custom' since it's the default in
pelican.conf, it ...</p></div>
pelican.conf, it will ...</p></div>
<a class="readmore" href="/unbelievable.html">read more</a>
</div><!-- /.entry-content -->
</article></li>

View file

@ -59,7 +59,7 @@
<div class="section" id="testing-another-case">
<h2>Testing another case</h2>
<p>This will now have a line number in 'custom' since it's the default in
pelican.conf, it ...</p></div>
pelican.conf, it will ...</p></div>
<a class="readmore" href="../unbelievable.html">read more</a>
<p>There are <a href="../unbelievable.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
</article></li>

View file

@ -103,7 +103,7 @@
<div class="section" id="testing-another-case">
<h2>Testing another case</h2>
<p>This will now have a line number in 'custom' since it's the default in
pelican.conf, it ...</p></div>
pelican.conf, it will ...</p></div>
<a class="readmore" href="../unbelievable.html">read more</a>
<p>There are <a href="../unbelievable.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
</article></li>

View file

@ -59,7 +59,7 @@
<div class="section" id="testing-another-case">
<h2>Testing another case</h2>
<p>This will now have a line number in 'custom' since it's the default in
pelican.conf, it ...</p></div>
pelican.conf, it will ...</p></div>
<a class="readmore" href="./unbelievable.html">read more</a>
<p>There are <a href="./unbelievable.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
</article></li>

View file

@ -59,7 +59,7 @@
<div class="section" id="testing-another-case">
<h2>Testing another case</h2>
<p>This will now have a line number in 'custom' since it's the default in
pelican.conf, it ...</p></div>
pelican.conf, it will ...</p></div>
<a class="readmore" href="../posts/2010/octobre/15/unbelievable/">read more</a>
<p>There are <a href="../posts/2010/octobre/15/unbelievable/#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
</article></li>
@ -135,4 +135,4 @@ pelican.conf, it ...</p></div>
}());
</script>
</body>
</html>
</html>

View file

@ -103,7 +103,7 @@
<div class="section" id="testing-another-case">
<h2>Testing another case</h2>
<p>This will now have a line number in 'custom' since it's the default in
pelican.conf, it ...</p></div>
pelican.conf, it will ...</p></div>
<a class="readmore" href="../posts/2010/octobre/15/unbelievable/">read more</a>
<p>There are <a href="../posts/2010/octobre/15/unbelievable/#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
</article></li>
@ -175,4 +175,4 @@ pelican.conf, it ...</p></div>
}());
</script>
</body>
</html>
</html>

View file

@ -59,7 +59,7 @@
<div class="section" id="testing-another-case">
<h2>Testing another case</h2>
<p>This will now have a line number in 'custom' since it's the default in
pelican.conf, it ...</p></div>
pelican.conf, it will ...</p></div>
<a class="readmore" href="./posts/2010/octobre/15/unbelievable/">read more</a>
<p>There are <a href="./posts/2010/octobre/15/unbelievable/#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
</article></li>
@ -135,4 +135,4 @@ pelican.conf, it ...</p></div>
}());
</script>
</body>
</html>
</html>