Browse Source

Transfer i(xx) to xxx#branch only when i is the first

character of the token or preceeded by a space.
pre-master-46
Holger Vogt 4 years ago
parent
commit
56d07aab31
  1. 4
      src/frontend/dotcards.c

4
src/frontend/dotcards.c

@ -631,7 +631,9 @@ gettoks(char *s)
*prevp = wl; *prevp = wl;
prevp = &wl->wl_next; prevp = &wl->wl_next;
if (*(l - 1) == 'i' || *(l - 1) == 'I') {
/* Transfer i(xx) to xxx#branch only when i is the first
character of the token or preceeded by a space. */
if ((*(l - 1) == 'i' || *(l - 1) == 'I') && (l - 1 == t) || ((l > t + 1) && isspace(*(l-2)))) {
char buf[513]; char buf[513];
sprintf(buf, "%s#branch", l + 1); sprintf(buf, "%s#branch", l + 1);
wl->wl_word = copy(buf); wl->wl_word = copy(buf);

Loading…
Cancel
Save