X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom%2Fgedcom.y;h=b04db39dbe5a239d79dce5e839ffcc60f59bf3a8;hb=2fb61a5d3ffec21d16adfa03a89f01cd8235ccae;hp=7cab98ec52b3332213a28063a8d51f19003d94d4;hpb=35f77ce6bd3ccc27047eda0b3ef8d74c7a86c3d7;p=gedcom-parse.git diff --git a/gedcom/gedcom.y b/gedcom/gedcom.y index 7cab98e..b04db39 100644 --- a/gedcom/gedcom.y +++ b/gedcom/gedcom.y @@ -2783,9 +2783,11 @@ line_item : anychar { size_t i; *line_item_buf_ptr++ = $1[i]; $$ = line_item_buf; } - | ESCAPE { CLEAR_BUFFER(line_item_buf); + | ESCAPE { size_t i; + 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 +2801,9 @@ line_item : anychar { size_t i; $$ = line_item_buf; } | line_item ESCAPE - { /* For now, ignore escapes */ + { size_t i; + for (i=0; i < strlen($2); i++) + *line_item_buf_ptr++ = $2[i]; $$ = line_item_buf; } ;