Fixed --> when at least two call forms are listed (thanks to axeld for reporting this)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13015 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1546,6 +1546,7 @@ XML(enum command cmd) {
|
|||||||
char *p;
|
char *p;
|
||||||
static int fRefEntry=0;
|
static int fRefEntry=0;
|
||||||
static int fRefPurpose=0;
|
static int fRefPurpose=0;
|
||||||
|
static int fSynopsisFirst=0;
|
||||||
/*static char *bads => XML doesn't backslash-quote metacharacters */
|
/*static char *bads => XML doesn't backslash-quote metacharacters */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -1665,7 +1666,7 @@ XML(enum command cmd) {
|
|||||||
case BEGINSECTION:
|
case BEGINSECTION:
|
||||||
if (sectheadid==NAME) printf("<refnamediv><!--\n");
|
if (sectheadid==NAME) printf("<refnamediv><!--\n");
|
||||||
/*printf("<RefEntry>"); -- do lotsa parsing here for RefName, RefPurpose*/
|
/*printf("<RefEntry>"); -- do lotsa parsing here for RefName, RefPurpose*/
|
||||||
else if (sectheadid==SYNOPSIS) printf("<refsynopsisdiv>\n<cmdsynopsis><!--\n");
|
else if (sectheadid==SYNOPSIS) { fSynopsisFirst = 1; printf("<refsynopsisdiv>\n<cmdsynopsis><!--\n"); }
|
||||||
else printf("\n<refsect1>\n");
|
else printf("\n<refsect1>\n");
|
||||||
break;
|
break;
|
||||||
case ENDSECTION:
|
case ENDSECTION:
|
||||||
@@ -1732,7 +1733,7 @@ XML(enum command cmd) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
/* have to make some guess about bold and italics */
|
/* have to make some guess about bold and italics */
|
||||||
case BEGINBOLD: if (sectheadid==SYNOPSIS) printf("-->");
|
case BEGINBOLD: if (sectheadid==SYNOPSIS && fSynopsisFirst) { fSynopsisFirst = 0; printf("-->"); }
|
||||||
printf("<command>"); break;
|
printf("<command>"); break;
|
||||||
case ENDBOLD: printf("</command>"); break;
|
case ENDBOLD: printf("</command>"); break;
|
||||||
case BEGINITALICS: printf("<emphasis>"); break; /* could be literal or arg */
|
case BEGINITALICS: printf("<emphasis>"); break; /* could be literal or arg */
|
||||||
|
|||||||
Reference in New Issue
Block a user