Re: [web2py] Re: MARKMIN indentation

2011-12-17 Thread Vasile Ermicioi
aha, ok thank you

[web2py] Re: MARKMIN indentation

2011-12-16 Thread Massimo Di Pierro
You problem is parsing invalid HTML or an HTML with non-utf8 encoding. web2py is not the tool for that. Use beautiful soup to parse it and then serialize it back to valid HTML in utf8. Then you can use TAG().flatten(...) On Dec 16, 2:45 pm, Vasile Ermicioi wrote: > so what to do? > please giv

Re: [web2py] Re: MARKMIN indentation

2011-12-16 Thread Vasile Ermicioi
so what to do? please give me an advice

[web2py] Re: MARKMIN indentation

2011-12-13 Thread Massimo Di Pierro
Markmin should work well with unicode. The TAG(...) html parser, based on HTMLParser has problems with non- utf8 encodings and non well-formatted html. Massmo On Dec 13, 6:10 pm, Vasile Ermicioi wrote: > I am trying to convert a bunch of html files to markmin, but I got strange > results > I th

Re: [web2py] Re: MARKMIN indentation

2011-12-13 Thread Vasile Ermicioi
I am trying to convert a bunch of html files to markmin, but I got strange results I think html to markmin doesn't work well with unicode (utf8 my case) attached are an example and this is my controller to do that def mmtest(): from gluon.html import markmin_serializer #markmin = TAG(html

[web2py] Re: MARKMIN indentation

2011-12-13 Thread Christopher Steel
+1 Markmin rocks

[web2py] Re: MARKMIN indentation

2011-12-12 Thread lyn2py
Thanks Massimo, MARKMIN is an excellent tool. Looking forward to this new feature in MARKMIN. On Dec 13, 1:30 am, Massimo Di Pierro wrote: > There is already an open issue about this. I approved it but did not > have the time to implement it. The minor complication is that it would > require chan

[web2py] Re: MARKMIN indentation

2011-12-12 Thread Massimo Di Pierro
There is already an open issue about this. I approved it but did not have the time to implement it. The minor complication is that it would require changing not just markmin2html.py but also markmin2latex. On Dec 12, 9:22 am, lyn2py wrote: > Hi, how do I make nested lists with MARKMIN? > For exam