Don't break for CONC on a space boundary.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Mon, 27 Jan 2003 17:54:57 +0000 (17:54 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Mon, 27 Jan 2003 17:54:57 +0000 (17:54 +0000)
gedcom/write.c

index ed17f1380e1ed615242dca6d25a3bff7c6122ee8..6e186b7b8c612d444d9895cfa7622df67288a36a 100644 (file)
@@ -154,8 +154,13 @@ int write_long(Gedcom_write_hndl hndl, int elt_or_rec,
 
        if (prefix_len + line_len + term_len > MAXWRITELEN) {
          line_len = MAXWRITELEN - prefix_len - term_len;
-         if (!cont_as_conc)
+         if (!cont_as_conc) {
            cont_tag = "CONC";
+           while (value_ptr[line_len] == ' '
+                  || value_ptr[line_len-1] == ' ') {
+             line_len--;
+           }
+         }
        }
        
        memset(value_part, 0, sizeof(value_part));