From 9d0804de7af858880e5ef74f0c1c5d8f5ad6419b Mon Sep 17 00:00:00 2001
From: Andrea Corbellini
Date: Wed, 19 Aug 2015 16:43:59 +0200
Subject: [PATCH] When truncating, consider hypens, apostrophes and HTML
entities.
---
pelican/tests/output/basic/category/misc.html | 2 +-
pelican/tests/output/basic/index.html | 2 +-
.../custom/author/alexis-metaireau3.html | 2 +-
.../tests/output/custom/category/misc.html | 2 +-
pelican/tests/output/custom/index3.html | 2 +-
.../author/alexis-metaireau3.html | 4 +-
.../output/custom_locale/category/misc.html | 4 +-
.../tests/output/custom_locale/index3.html | 4 +-
pelican/tests/test_utils.py | 28 ++++++--
pelican/utils.py | 69 ++++++++++++++++---
10 files changed, 95 insertions(+), 24 deletions(-)
diff --git a/pelican/tests/output/basic/category/misc.html b/pelican/tests/output/basic/category/misc.html
index 0368793e..f491a464 100644
--- a/pelican/tests/output/basic/category/misc.html
+++ b/pelican/tests/output/basic/category/misc.html
@@ -90,7 +90,7 @@
Testing another case
This will now have a line number in 'custom' since it's the default in
-pelican.conf, it ...
+pelican.conf, it will ...
read more
diff --git a/pelican/tests/output/basic/index.html b/pelican/tests/output/basic/index.html
index 3066172d..4c74500d 100644
--- a/pelican/tests/output/basic/index.html
+++ b/pelican/tests/output/basic/index.html
@@ -227,7 +227,7 @@ YEAH !
Testing another case
This will now have a line number in 'custom' since it's the default in
-pelican.conf, it ...
+pelican.conf, it will ...
read more
diff --git a/pelican/tests/output/custom/author/alexis-metaireau3.html b/pelican/tests/output/custom/author/alexis-metaireau3.html
index 54c768ac..3ca4dd0d 100644
--- a/pelican/tests/output/custom/author/alexis-metaireau3.html
+++ b/pelican/tests/output/custom/author/alexis-metaireau3.html
@@ -59,7 +59,7 @@
Testing another case
This will now have a line number in 'custom' since it's the default in
-pelican.conf, it ...
+pelican.conf, it will ...
read more
There are comments.
diff --git a/pelican/tests/output/custom/category/misc.html b/pelican/tests/output/custom/category/misc.html
index fa71085d..b705a552 100644
--- a/pelican/tests/output/custom/category/misc.html
+++ b/pelican/tests/output/custom/category/misc.html
@@ -103,7 +103,7 @@
Testing another case
This will now have a line number in 'custom' since it's the default in
-pelican.conf, it ...
+pelican.conf, it will ...
read more
There are comments.
diff --git a/pelican/tests/output/custom/index3.html b/pelican/tests/output/custom/index3.html
index 1dab4e7d..b968b7e8 100644
--- a/pelican/tests/output/custom/index3.html
+++ b/pelican/tests/output/custom/index3.html
@@ -59,7 +59,7 @@
Testing another case
This will now have a line number in 'custom' since it's the default in
-pelican.conf, it ...
+pelican.conf, it will ...
read more
There are comments.
diff --git a/pelican/tests/output/custom_locale/author/alexis-metaireau3.html b/pelican/tests/output/custom_locale/author/alexis-metaireau3.html
index 66575c71..2fea24c3 100644
--- a/pelican/tests/output/custom_locale/author/alexis-metaireau3.html
+++ b/pelican/tests/output/custom_locale/author/alexis-metaireau3.html
@@ -59,7 +59,7 @@
Testing another case
This will now have a line number in 'custom' since it's the default in
-pelican.conf, it ...
+pelican.conf, it will ...
read more
There are comments.
@@ -135,4 +135,4 @@ pelican.conf, it ...
}());