version 1.124, 2019/04/14 20:13:25 |
version 1.126, 2019/04/14 22:37:56 |
Line 126 pnode_printtext(struct format *f, struct pnode *n) |
|
Line 126 pnode_printtext(struct format *f, struct pnode *n) |
|
} |
} |
|
|
static void |
static void |
|
pnode_printimagedata(struct format *f, struct pnode *n) |
|
{ |
|
const char *cp; |
|
|
|
if ((cp = pnode_getattr_raw(n, ATTRKEY_FILEREF, NULL)) == NULL) |
|
cp = pnode_getattr_raw(n, ATTRKEY_ENTITYREF, NULL); |
|
if (cp != NULL) { |
|
print_text(f, "[image:", ARG_SPACE); |
|
print_text(f, cp, ARG_SPACE); |
|
print_text(f, "]", 0); |
|
} else |
|
print_text(f, "[image]", ARG_SPACE); |
|
} |
|
|
|
static void |
pnode_printpara(struct format *f, struct pnode *n) |
pnode_printpara(struct format *f, struct pnode *n) |
{ |
{ |
struct pnode *np; |
struct pnode *np; |
Line 140 pnode_printpara(struct format *f, struct pnode *n) |
|
Line 155 pnode_printpara(struct format *f, struct pnode *n) |
|
|
|
switch (np->node) { |
switch (np->node) { |
case NODE_ENTRY: |
case NODE_ENTRY: |
|
case NODE_FOOTNOTE: |
case NODE_GLOSSTERM: |
case NODE_GLOSSTERM: |
case NODE_LISTITEM: |
case NODE_LISTITEM: |
case NODE_TERM: |
case NODE_TERM: |
Line 1096 pnode_print(struct format *f, struct pnode *n) |
|
Line 1112 pnode_print(struct format *f, struct pnode *n) |
|
case NODE_FILENAME: |
case NODE_FILENAME: |
macro_open(f, "Pa"); |
macro_open(f, "Pa"); |
break; |
break; |
|
case NODE_FOOTNOTE: |
|
macro_line(f, "Bo"); |
|
break; |
case NODE_FUNCTION: |
case NODE_FUNCTION: |
macro_open(f, "Fn"); |
macro_open(f, "Fn"); |
break; |
break; |
Line 1105 pnode_print(struct format *f, struct pnode *n) |
|
Line 1124 pnode_print(struct format *f, struct pnode *n) |
|
case NODE_FUNCSYNOPSISINFO: |
case NODE_FUNCSYNOPSISINFO: |
macro_open(f, "Fd"); |
macro_open(f, "Fd"); |
break; |
break; |
|
case NODE_IMAGEDATA: |
|
pnode_printimagedata(f, n); |
|
break; |
case NODE_INFORMALEQUATION: |
case NODE_INFORMALEQUATION: |
macro_line(f, "Bd -ragged -offset indent"); |
macro_line(f, "Bd -ragged -offset indent"); |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
Line 1279 pnode_print(struct format *f, struct pnode *n) |
|
Line 1301 pnode_print(struct format *f, struct pnode *n) |
|
case NODE_TEXT: |
case NODE_TEXT: |
/* Accept more arguments to the previous macro. */ |
/* Accept more arguments to the previous macro. */ |
return; |
return; |
|
case NODE_FOOTNOTE: |
|
macro_line(f, "Bc"); |
|
break; |
case NODE_INFORMALEQUATION: |
case NODE_INFORMALEQUATION: |
macro_line(f, "EN"); |
macro_line(f, "EN"); |
macro_line(f, "Ed"); |
macro_line(f, "Ed"); |