On Tue, Jun 18, 2013 at 6:17 PM, Nicolas Mailhot <nicolas.mailhot@xxxxxxxxxxx> wrote: > > Le Lun 17 juin 2013 14:25, Raimund Steger a écrit : > Hi, > >> <match> >> <test1> >> <edit1> >> </match> >> <match> >> <test1> >> <test2> >> <edit2> >> </match> >> >> i. e., test2 is only evaluated if test1 was successful. > > why is edit1 dumped in the second block ? I'd expect it to be applied to > (even though edit2 will often overwrite it) It is supposed to be applied by first block. what he was pointed out is, current implementation ignores <test1> in second block so <edit2> was applied if <test2> is success regardless of the condition of <test1>. > What happens if edit1 changes a bit test2 checks? That should be no problem but good question. this recipe may not works as expected (not tested): <match> <test name="family"> <string>foo</string> </test> <edit name="family" mode="delete/> <test name="family"> <string>bar</string> </test> ... </match> > > Regards, > > -- > Nicolas Mailhot > -- Akira TAGOH _______________________________________________ Fontconfig mailing list Fontconfig@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/fontconfig