Changeset 3066:1371bd74ccf0 in livinglogic.python.xist

Show
Ignore:
Timestamp:
12/19/07 17:02:15 (12 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Rewrap.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • NEWS.rst

    r3065 r3066  
    1010    can do: 
    1111 
    12     *   ``del node[html.p]`` to delete all :class:`html.p` child elements of ``node``; 
     12    *   ``del node[html.p]`` to delete all :class:`html.p` child elements of 
     13        ``node``; 
    1314    *   ``del node[html.p[2]]`` to delete only the third :class:`html.p`; 
    1415    *   ``node[xfind.hasclass("note")] = html.p("There was a note here!")`` to 
    1516        replace several child nodes with a new one; 
    16     *   ``for c in node[xfind.empty]: print c.bytes()`` to print all empty (element) 
    17         children of ``node``; 
     17    *   ``for c in node[xfind.empty]: print c.bytes()`` to print all empty 
     18        (element) children of ``node``; 
    1819    *   ``del node[node[0]]`` to delete the first child node (which is silly, but 
    1920        illustrates that you can pass a node to get/replace/delete that node); 
     
    3334    passed as a string. 
    3435 
    35 *   Constructing trees can now be done with ``with`` blocks. Code looks like this:: 
     36*   Constructing trees can now be done with ``with`` blocks. Code looks like 
     37    this:: 
    3638     
    3739        with xsc.Frag() as node: