2 Sep 09:44
Re: i18ndude "sync" error?
On Fri, Aug 28, 2009 at 5:33 PM, Vincent Fretin<vincent.fretin@...> wrote: > On Fri, Aug 28, 2009 at 12:40 AM, victor rajewski <vik@...> > wrote: >> >> On Thu, Aug 27, 2009 at 8:04 AM, Vincent Fretin<vincent.fretin@...> >> wrote: >> > On Thu, Aug 27, 2009 at 7:40 AM, victor rajewski <vik@...> >> >> I have a .pt file for creating RSS2 feeds. RSS2 is XML, but is not >> >> HTML. In particular, the <link> tag in HTML is an empty tag (i.e. >> >> never has any content), while in RSS2 it needs content (the URI of >> >> some item). The problem is, i18ndude treats .pt (in fact .*pt) files >> >> as HTML, and puts them through the HTMLTALParser, which fails when it >> >> gets a non-empty <link> tag. This occurs around line 472 in >> >> i18ndude/extract.py. >> > >> > I'm not sure, but do your link is closed like this: >> > <link attr1="" attr2="" /> >> > ? >> >> The link tag is not closed, because it is not meant to be. In RSS, the >> link tag looks like: >> <link>http://foo.bar/blah.html</link> >> which is what my template has. However, this is not valid HTML, which >> expects >> <link /> >> >> The issue is with i18ndude expecting all .*pt files to be HTML. It is >> possible they are XML. >>(Continue reading)
RSS Feed