]> granicus.if.org Git - graphviz/commitdiff
Fix error in line counting during lexing of html strings
authorEmden Gansner <erg@research.att.com>
Wed, 11 Jan 2012 21:53:06 +0000 (16:53 -0500)
committerEmden Gansner <erg@research.att.com>
Wed, 11 Jan 2012 21:53:06 +0000 (16:53 -0500)
lib/cgraph/scan.l

index 56696fb4be1c3446e44e00b3fc4b8030c2db00d5..75d377d8b9d3969a407e9ace4b8daf082e35ad69 100644 (file)
@@ -186,7 +186,7 @@ ID          ({NAME}|{NUMBER})
 <hstring>[>]                   html_nest--; if (html_nest) addstr(yytext); else {BEGIN(INITIAL); endstr_html(); return (T_qatom);}
 <hstring>[<]                   html_nest++; addstr(yytext);
 <hstring>[\n]                  addstr(yytext); line_num++; /* add newlines */
-<hstring>([^><]*)              addstr(yytext);
+<hstring>([^><\n]*)            addstr(yytext);
 .                                              return (yytext[0]);
 %%
 void yyerror(char *str)