mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 01:41:10 +00:00
Advance src with next_line.
This fixes the double counting of the \n at the end of the chunk separator line.
This commit is contained in:
parent
d1848a93c8
commit
3b56f0e3bf
1 changed files with 2 additions and 1 deletions
|
@ -157,7 +157,8 @@ Segtext_new (const char *source_string)
|
|||
*src++ = 0; // terminate the previous chunk
|
||||
*chunk = new_chunk ();
|
||||
(*chunk)->tag = find_tag (src);
|
||||
(*chunk)->text = next_line (src, &line);
|
||||
src = next_line (src, &line);
|
||||
(*chunk)->text = src;
|
||||
(*chunk)->start_line = line;
|
||||
// If tags are duplicated, the first one takes precedence
|
||||
if ((*chunk)->tag && !Hash_Find (text->tab, (*chunk)->tag))
|
||||
|
|
Loading…
Reference in a new issue