[BACK]Return to man.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/man.c between version 1.136 and 1.141

version 1.136, 2014/08/01 17:27:44 version 1.141, 2014/10/20 15:50:24
Line 16 
Line 16 
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF   * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.   * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */   */
 #ifdef HAVE_CONFIG_H  
 #include "config.h"  #include "config.h"
 #endif  
   
 #include <sys/types.h>  #include <sys/types.h>
   
Line 121  int
Line 119  int
 man_parseln(struct man *man, int ln, char *buf, int offs)  man_parseln(struct man *man, int ln, char *buf, int offs)
 {  {
   
         man->flags |= MAN_NEWLINE;          if (man->last->type != MAN_EQN || ln > man->last->line)
                   man->flags |= MAN_NEWLINE;
   
         return (roff_getcontrol(man->roff, buf, &offs) ?          return (roff_getcontrol(man->roff, buf, &offs) ?
             man_pmacro(man, ln, buf, offs) :              man_pmacro(man, ln, buf, offs) :
Line 186  man_node_append(struct man *man, struct man_node *p)
Line 185  man_node_append(struct man *man, struct man_node *p)
         assert(p->parent);          assert(p->parent);
         p->parent->nchild++;          p->parent->nchild++;
   
         if ( ! man_valid_pre(man, p))  
                 return(0);  
   
         switch (p->type) {          switch (p->type) {
           case MAN_BLOCK:
                   if (p->tok == MAN_SH || p->tok == MAN_SS)
                           man->flags &= ~MAN_LITERAL;
                   break;
         case MAN_HEAD:          case MAN_HEAD:
                 assert(MAN_BLOCK == p->parent->type);                  assert(MAN_BLOCK == p->parent->type);
                 p->parent->head = p;                  p->parent->head = p;
Line 346  man_addeqn(struct man *man, const struct eqn *ep)
Line 346  man_addeqn(struct man *man, const struct eqn *ep)
   
         n = man_node_alloc(man, ep->ln, ep->pos, MAN_EQN, MAN_MAX);          n = man_node_alloc(man, ep->ln, ep->pos, MAN_EQN, MAN_MAX);
         n->eqn = ep;          n->eqn = ep;
           if (ep->ln > man->last->line)
                   n->flags |= MAN_LINE;
   
         if ( ! man_node_append(man, n))          if ( ! man_node_append(man, n))
                 return(0);                  return(0);
Line 471  man_pmacro(struct man *man, int ln, char *buf, int off
Line 473  man_pmacro(struct man *man, int ln, char *buf, int off
         enum mant        tok;          enum mant        tok;
         int              i, ppos;          int              i, ppos;
         int              bline;          int              bline;
   
         if ('"' == buf[offs]) {  
                 mandoc_msg(MANDOCERR_COMMENT_BAD, man->parse,  
                     ln, offs, NULL);  
                 return(1);  
         } else if ('\0' == buf[offs])  
                 return(1);  
   
         ppos = offs;          ppos = offs;
   

Legend:
Removed from v.1.136  
changed lines
  Added in v.1.141

CVSweb