Re: [GsoC] your latest commit of tasks_udd.py
Hi Akshita,
On Thu, Aug 06, 2015 at 04:31:31PM +0530, Akshita Jha wrote:
> >
> > May be you could implement an option "-sloppy" which ignores this kind of
> > stuff.
>
> This is done. The class 'published' is not considered for diff anymore.
> Usage: ./test_output.py <optional sloppy flag (-s)> <Blend> <optional lang>
OK, I'll check later.
> > -<data> : <start_tag> : span <attr> : ('class', 'navpara') <data> :
> <start_tag> : a <attr> : ('href', 'bio-ngs.ru.html') <attr> : ('title',
> 'Russian') <attr> : ('hreflang', 'ru') <attr> : ('lang', 'ru')
> <attr> : ('rel', 'alternate') <data> : Русский (Russkij) <end_tag> : a
> > +<data> : <start_tag> : span <attr> : ('class', 'navpara') <data> :
> <start_tag> : a <attr> : ('href', 'bio-ngs.ru.html') <attr> : ('title',
> 'Russian') <attr> : ('hreflang', 'ru') <attr> : ('lang', 'ru')
> <attr> : ('rel', 'alternate') <data> : Русск ий (Russkij) <end_tag> : a
> >
>
> The diff is because of the space: Русский (Russkij), Русск ий (Russkij).
> Should this be ignored ? Because if we ignore the space here, then we might
> need to ignore space for contents in <data> everytime. Hmm. I don't think
> this will cause any problem though. We can ignore this diff only if '-s'
> flag is used. What do you feel about it ?
I think any space in HTML should be irrelevant. So please ignore it
(even without the -s flag).
> > We could also ignore:
> >
> > -<data> : <start_tag> : address <data> : Last update: Fri, 31 Jul 2015
> 12:13:09 -0000 <end_tag> : address
> > +<data> : <start_tag> : address <data> : Last update: Wed, 05 Aug 2015
> 13:07:39 -0000 <end_tag> : address
> >
>
> This is also ignored irrespective of '-s' flag. This diff is never computed.
+1
Kind regards
Andreas.
--
http://fam-tille.de
Reply to: