Letractively / lightblog

Automatically exported from code.google.com/p/lightblog
Other
0 stars 0 forks source link

Broken HTML on main page when a long post starts with two paragraphs. #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Create a new post with two paragraphs. Keep the first fairly short, and the 
second a bit longer. Something like this works well to illustrate:

    Hello world. This is a test. Just a simple test.

    This is a test. Just a simple test. This is a test. Just a simple test. This is a test. Just a simple test. This is a test. Just a simple test. This is a test. Just a simple test. This is a test. Just a simple test. This is a test. Just a simple test. This is a test. Just a simple test. This is a test. Just a simple test. This is a test. Just a simple test. This is a test. Just a simple test. This is a test. Just a simple test. This is a test. Just a simple test. This is a test. Just a simple test. This is a test. Just a simple test.

When the post is truncated for display on the main page, the longer second 
paragraph will contain a premature </div> tag, breaking the HTML.

Original issue reported on code.google.com by parasy...@gmail.com on 21 Mar 2012 at 8:12

GoogleCodeExporter commented 9 years ago
I can't reproduce that bug. Can you take a screenshot, or setup a testing site 
to show me?

Original comment by soren121@outlook.com on 23 Mar 2012 at 8:36

GoogleCodeExporter commented 9 years ago
Have a look at: http://blog.kodewerx.org/

Original comment by parasy...@gmail.com on 6 Apr 2012 at 2:44

GoogleCodeExporter commented 9 years ago
My guess would be that it's a quirk with the WYSIWYG editor, nicEdit. It has 
many problems, and the developer isn't actively supporting it anymore. I've 
been trying to switch for a while, and my choices are now down to: CLEditor, 
TinyMCE, or coding a new editor from scratch.

nicEdit does so much wrong because it outputs bad HTML and then tries to clean 
it with regular expressions. CLEditor doesn't use paragraph tags. TinyMCE goes 
against the philosophy of LightBlog (and its own name) because it is anything 
but tiny. But I guess if I want a good WYSIWYG editor, I'll have to sacrifice 
something. I can't write anything in JavaScript, let alone a WYSIWYG editor. It 
is the most finicky language I've ever used, probably due to the browsers.

While I try to get another WYSIWYG editor integrated, I'll look into how posts 
are truncated.

Original comment by soren121@outlook.com on 6 Apr 2012 at 3:22

GoogleCodeExporter commented 9 years ago
Looks like it does have to do with the post truncator. Not sure what it's doing 
wrong. I'll just have to replace it with something else.

Original comment by soren121@outlook.com on 6 Apr 2012 at 5:32

GoogleCodeExporter commented 9 years ago
Should be fixed in SVN r518. Just replace Sources/Template.php with the new 
version in r518, and it should fix the problem.

Original comment by soren121@outlook.com on 6 Apr 2012 at 6:03

GoogleCodeExporter commented 9 years ago
Works a treat! Thank you.

Original comment by parasy...@gmail.com on 7 Apr 2012 at 8:42