=================================================================== RCS file: /cvs/docbook2mdoc/parse.c,v retrieving revision 1.57 retrieving revision 1.59 diff -u -p -r1.57 -r1.59 --- docbook2mdoc/parse.c 2019/05/01 17:20:47 1.57 +++ docbook2mdoc/parse.c 2019/05/02 11:58:18 1.59 @@ -1,4 +1,4 @@ -/* $Id: parse.c,v 1.57 2019/05/01 17:20:47 schwarze Exp $ */ +/* $Id: parse.c,v 1.59 2019/05/02 11:58:18 schwarze Exp $ */ /* * Copyright (c) 2014 Kristaps Dzonsons * Copyright (c) 2019 Ingo Schwarze @@ -97,10 +97,12 @@ static const struct alias aliases[] = { { "imageobject", NODE_IGNORE }, { "indexterm", NODE_DELETE }, { "informaltable", NODE_TABLE }, + { "jobtitle", NODE_IGNORE }, { "keycap", NODE_KEYSYM }, { "keycode", NODE_IGNORE }, { "keycombo", NODE_IGNORE }, { "mediaobject", NODE_BLOCKQUOTE }, + { "orgdiv", NODE_IGNORE }, { "orgname", NODE_IGNORE }, { "othercredit", NODE_AUTHOR }, { "othername", NODE_PERSONNAME }, @@ -354,12 +356,12 @@ pnode_closetext(struct parse *p, int check_last_word) while (cp > n->b && !isspace((unsigned char)cp[-1])) cp--; - if (cp == n->b) - return; - last_word = cp; while (cp > n->b && isspace((unsigned char)cp[-1])) - *--cp = '\0'; + cp--; + if (cp == n->b) + return; + *cp = '\0'; /* Move the last word into its own node, for use with .Pf. */