=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/eqn.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- src/usr.bin/mandoc/eqn.c 2014/10/09 15:21:46 1.12 +++ src/usr.bin/mandoc/eqn.c 2014/10/09 15:59:08 1.13 @@ -1,6 +1,6 @@ -/* $Id: eqn.c,v 1.12 2014/10/09 15:21:46 schwarze Exp $ */ +/* $Id: eqn.c,v 1.13 2014/10/09 15:59:08 schwarze Exp $ */ /* - * Copyright (c) 2011 Kristaps Dzonsons + * Copyright (c) 2011, 2014 Kristaps Dzonsons * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -587,6 +587,10 @@ NULL != last->last->prev && EQNPOS_SUB == last->last->prev->pos) last->last->prev->pos = EQNPOS_SUBSUP; + else if (EQNPOS_TO == i && + NULL != last->last->prev && + EQNPOS_FROM == last->last->prev->pos) + last->last->prev->pos = EQNPOS_FROMTO; else last->last->pos = (enum eqn_post)i;