Re: News Application: Non-Breaking Space Issue
Posted by
Hugo <Nabble> on
URL: https://support.nabble.com/News-Application-Non-Breaking-Space-Issue-tp6843865p6845509.html
This is a tricky issue, let me try to explain. As you know, the snippet text is the post message trimmed. We have to first convert the message into the text format and then trim it. This step is needed because if the message is in HTML format, then there would be some chance of cutting an HTML tag in half (e.g., "<font...") and break the whole HTML of the page (making it look broken/weird).
The easiest solution I see here is this: we created for Harvey44 some NAML code to let the author define an independent snippet for each post. So instead of trimming the text, it gets the snippet from a special section. Basically you should write the post like this:
{summary_start}
This is the snippet of the post. Here you can write anything.
{summary_end}
This is the body of the post.
If you think this is a nice feature, I can make it available from the "Extras & add-ons" page. So you could enable that add-on and specific the snippet you want. Two things to remember:
1) If you don't specify the start/end_summary tags, then it will trim the text as it always did (default behavior). This is good because you don't have to write custom summaries for every post (just for those that need some special touch);
2) The summary/snippet is placed without modification, so you can use HTML tags in that section without problems.
Please let me know what you think.