diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-06 14:24:49 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-06 14:24:49 +0000 |
commit | a454003ad67073a51037d0dc5dcbf5b3cced1b8e (patch) | |
tree | 55c6dd71b1f4ad3af5079c7fc6a5c1d6def01a2a /action.c | |
parent | 236dae9fb3183b9c1d8bc6f77614797d65800987 (diff) | |
download | mandoc-a454003ad67073a51037d0dc5dcbf5b3cced1b8e.tar.gz mandoc-a454003ad67073a51037d0dc5dcbf5b3cced1b8e.tar.zst mandoc-a454003ad67073a51037d0dc5dcbf5b3cced1b8e.zip |
Documented the strings script.
Diffstat (limited to 'action.c')
-rw-r--r-- | action.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: action.c,v 1.31 2009/03/06 14:13:47 kristaps Exp $ */ +/* $Id: action.c,v 1.32 2009/03/06 14:24:49 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se> * @@ -535,11 +535,13 @@ post_ar(struct mdoc *mdoc) n = mdoc->last; mdoc->next = MDOC_NEXT_CHILD; - mdoc_word_alloc(mdoc, mdoc->last->line, - mdoc->last->pos, "file"); + if ( ! mdoc_word_alloc(mdoc, mdoc->last->line, + mdoc->last->pos, "file")) + return(0); mdoc->next = MDOC_NEXT_SIBLING; - mdoc_word_alloc(mdoc, mdoc->last->line, - mdoc->last->pos, "..."); + if ( ! mdoc_word_alloc(mdoc, mdoc->last->line, + mdoc->last->pos, "...")) + return(0); mdoc->last = n; mdoc->next = MDOC_NEXT_SIBLING; |