Don't ignore escapes anymore: just put them as text in the line value.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Fri, 28 Dec 2001 20:53:58 +0000 (20:53 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Fri, 28 Dec 2001 20:53:58 +0000 (20:53 +0000)
gedcom/gedcom.y

index 7cab98ec52b3332213a28063a8d51f19003d94d4..8bb5bb69433065923cec61990f970c5b7ee0a58a 100644 (file)
@@ -2785,7 +2785,8 @@ line_item   : anychar  { size_t i;
                        }
             | ESCAPE   { CLEAR_BUFFER(line_item_buf);
                         line_item_buf_ptr = line_item_buf;
-                        /* For now, ignore escapes */
+                        for (i=0; i < strlen($1); i++)
+                          *line_item_buf_ptr++ = $1[i];
                         $$ = line_item_buf;
                       }
             | line_item anychar
@@ -2799,7 +2800,8 @@ line_item   : anychar  { size_t i;
                    $$ = line_item_buf;
                  }
             | line_item ESCAPE
-                  { /* For now, ignore escapes */
+                  { for (i=0; i < strlen($2); i++)
+                     *line_item_buf_ptr++ = $2[i];
                    $$ = line_item_buf;
                  }
             ;