1 <page xmlns="http://projectmallard.org/1.0/"
2 xmlns:e="http://projectmallard.org/experimental/"
7 <link type="guide" xref="index#merging"/>
8 <revision pkgversion="3.0" version="0.1" date="2010-05-04" status="incomplete"/>
10 How to skip blank address lines when doing a document merge.
12 <credit type="author">
13 <name>Jim Evins</name>
14 <email>evins@snaught.com</email>
16 <credit type="author">
17 <name>Mario Blättermann</name>
18 <email>mariobl@gnome.org</email>
21 <p>Creative Commons Share Alike 3.0</p>
25 <title>Skipping blank address lines</title>
27 <p>This feature can be best described by a simple example. In the
28 following CSV file, column 5 (ADDR2) contains the second address line
29 for each record. This field is empty in records 1 and 2, but not in
30 record 3. (For this feature to work, the field must be completely
31 empty -- any text, including spaces will defeat this feature.)</p>
34 LAST,FIRST,MI,ADDR1,ADDR2,CITY,STATE,ZIP
35 Summers,Joyce,,"1630 Revello Dr",,Sunnydale,CA,95037
36 McGarret,Steve,O,"404 Piikoi Street",,Honolulu,HI,96813
37 Kramer,Cosmo,,"Apt 5B","129 W. 81 St.","New York",NY,10024-7207
40 <p>In the following screenshot, a single multiline text object has been
41 created to format these addresses. Notice that ${ADDR2} representing
42 the second address line is on a line by itself. (Any additional text
43 on this line, including spaces would defeat this feature.)</p>
45 <media type="image" src="figures/skip-fields-screenshot.png" mime="image/png" style="right">
46 <p>Multi-line address</p>
49 <p>Printing this label results in the following output. Notice that the
50 line containing the ${ADDR2} field is completely skipped for the first
51 two records, without printing a blank line.</p>
53 <media type="image" src="figures/skip-fields-output.png" mime="image/png" style="right">