[Fontconfig-bugs] [Bug 23757] Add mode="delete" to <edit>

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jan 29 03:23:39 PST 2013


https://bugs.freedesktop.org/show_bug.cgi?id=23757

Akira TAGOH <akira at tagoh.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|fontconfig-bugs at lists.freed |akira at tagoh.org
                   |esktop.org                  |
                 CC|                            |fontconfig-bugs at lists.freed
                   |                            |esktop.org

--- Comment #2 from Akira TAGOH <akira at tagoh.org> ---
proposed changes:
  http://cgit.freedesktop.org/~tagoh/fontconfig/commit/?h=bz23757

commit d95aee42d952fe11f3cc173d1d94ae19f0053af2
Author: Akira TAGOH <akira at tagoh.org>
Date:   Tue Jan 29 20:19:36 2013 +0900

    Bug 23757 - Add mode="delete" to <edit>

    Add two edit mode, "delete" and "delete_all".
    what values are being deleted depends on <test> as documented.
    if the target object is same to what is tested, matching value there
    will be deleted. otherwise all of values in the object will be deleted.
    so this would means both edit mode will not take any expressions.

    e.g.

    Given that the testing is always true here, the following rules:

      <match>
        <test name="foo" compare="eq">
          <string>bar</string>
        </test>
        <edit name="foo" mode="delete"/>
      </match>

    will removes "bar" string from "foo" object. and:

      <match>
        <test name="foo" compare="eq">
          <string>foo</string>
        </test>
        <edit name="bar" mode="delete"/>
      </match>

    will removes all of values in "bar" object.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20130129/32a5e8e7/attachment.html>


More information about the Fontconfig-bugs mailing list