kamalx / typogrify

Automatically exported from code.google.com/p/typogrify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Widont filter adds   character for single word list items #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use the Widont template filter in a template
2. Enter a single word with an <li> tag

What is the expected output? What do you see instead?

The widont filter should ignore a single word within <li> tags. Instead it is 
adding a &nbsp; before 
the word. See http://www.china8project.com/education/

What version of the product are you using? On what operating system?

Using revision 5, on Red Hat Linux

Original issue reported on code.google.com by arthur.c...@gmail.com on 9 Aug 2007 at 7:43

GoogleCodeExporter commented 8 years ago
Thanks very much. I didn't realize this. I'll try to get this fixed in the next 
week.

Original comment by mintx...@gmail.com on 9 Aug 2007 at 4:07

GoogleCodeExporter commented 8 years ago
I haven't not been able to reproduce this. Which is weird, because I did see it 
on that page. I wonder if it might 
be not playing nice with another filter/tag used in that template or if 
something specific with your version of 
python is weirding it out. 

They'll be a new version out (probably later tonight) that has tests that check 
for this. If you can just run the 
main typogrify.py on your system it'll run the tests. If it fails at all please 
let me know.

Original comment by mintx...@gmail.com on 20 Nov 2007 at 6:46

GoogleCodeExporter commented 8 years ago
Ok, I tried some more and I figured out that there has to be a space before the 
word in the markup "<ul><li> 
Test</p></li><ul>" would break. Once I finally got that to happen I got it 
fixed. I'm checking in the fix now.

Original comment by mintx...@gmail.com on 20 Nov 2007 at 7:36