From ed74b3517ba0c289de9c2d5e25178bda717fe3a7 Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Fri, 28 Dec 2001 20:53:58 +0000 Subject: [PATCH] Don't ignore escapes anymore: just put them as text in the line value. --- gedcom/gedcom.y | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gedcom/gedcom.y b/gedcom/gedcom.y index 7cab98e..8bb5bb6 100644 --- a/gedcom/gedcom.y +++ b/gedcom/gedcom.y @@ -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; } ; -- 2.30.2