Cleaned manref ids, in the end tools document filenames are cleaner
Commented out Name and Synopsis, they are useless in our case git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12811 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
6d352d08b3
commit
1ea5e6a028
@ -1657,15 +1657,15 @@ XML(enum command cmd) {
|
|||||||
break;
|
break;
|
||||||
case ENDSECTHEAD:
|
case ENDSECTHEAD:
|
||||||
case ENDSUBSECTHEAD:
|
case ENDSUBSECTHEAD:
|
||||||
if (sectheadid == NAME) printf("<refname>");
|
if (sectheadid == NAME) printf("--><refname>");
|
||||||
else if (sectheadid == SYNOPSIS) {}
|
else if (sectheadid == SYNOPSIS) {}
|
||||||
else { printf("</title>\n<para>"); fPara=1; }
|
else { printf("</title>\n<para>"); fPara=1; }
|
||||||
break;
|
break;
|
||||||
|
|
||||||
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) printf("<refsynopsisdiv>\n<cmdsynopsis><!--\n");
|
||||||
else printf("\n<refsect1>\n");
|
else printf("\n<refsect1>\n");
|
||||||
break;
|
break;
|
||||||
case ENDSECTION:
|
case ENDSECTION:
|
||||||
@ -1731,7 +1731,8 @@ 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: printf("<command>"); break;
|
case BEGINBOLD: if (sectheadid==SYNOPSIS) printf("-->");
|
||||||
|
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 */
|
||||||
case ENDITALICS: printf("</emphasis>"); break;
|
case ENDITALICS: printf("</emphasis>"); break;
|
||||||
@ -3708,7 +3709,9 @@ source_command(char *p) {
|
|||||||
p = q;
|
p = q;
|
||||||
if (p!=NULL) {
|
if (p!=NULL) {
|
||||||
while (isspace(*p)) p++;
|
while (isspace(*p)) p++;
|
||||||
if (*p) { q=strchr(p,' '); if (q!=NULL) *q++='\0'; }
|
while (*p == '\"') p++;
|
||||||
|
if (*p) { q=strchr(p,' '); if (*(q-1) == '\"') *(q-1) = '\0';
|
||||||
|
if (q!=NULL) *q++='\0'; }
|
||||||
}
|
}
|
||||||
strcpy(manSect, p!=NULL? p: "?");
|
strcpy(manSect, p!=NULL? p: "?");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user