Hello, i'm having issues with the excerpt tag. It seems that excerpt sometimes adds one extra word after the end of a line when outputting content.
For instance; I would like to excerpt the following text at count 23, so that it returns only the first two sentences:
---
Mobile phones en apps zijn hypersensitief. Na distributie van een mobile phone en app is het niet meer mogelijk een aanpassing te doen.
Uw klant verwacht het beste van u. De minste hapering kan ertoe leiden dat geswitcht wordt van app of mobile phone. De kans op imagoschade ligt altijd op de loer. Met het specialistische testwerk van Specialisterren voorkomt u dat.
---
I'm using:
However: Couch returns the first two sentences, plus the first word of the next sentence ("Uw..."), so 24 words in total. When I set count to 22, it shows exactly 22 words, when count is set to 24, it shows 25 words.
The source of the sentences don't show any extra/strange html.
Also, just to be sure I replaced '<cms:show content />' with plain text, in which case count also works as expected.
Am I missing something here?
For instance; I would like to excerpt the following text at count 23, so that it returns only the first two sentences:
---
Mobile phones en apps zijn hypersensitief. Na distributie van een mobile phone en app is het niet meer mogelijk een aanpassing te doen.
Uw klant verwacht het beste van u. De minste hapering kan ertoe leiden dat geswitcht wordt van app of mobile phone. De kans op imagoschade ligt altijd op de loer. Met het specialistische testwerk van Specialisterren voorkomt u dat.
---
I'm using:
- Code: Select all
<p><cms:excerpt count='23'><cms:show content /></cms:excerpt></p>
However: Couch returns the first two sentences, plus the first word of the next sentence ("Uw..."), so 24 words in total. When I set count to 22, it shows exactly 22 words, when count is set to 24, it shows 25 words.
The source of the sentences don't show any extra/strange html.
Also, just to be sure I replaced '<cms:show content />' with plain text, in which case count also works as expected.
Am I missing something here?