From 1ea5e6a02818f2455161ee24ab65848fa5196e16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Wed, 25 May 2005 16:18:28 +0000 Subject: [PATCH] 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 --- src/tools/rman/rman.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/tools/rman/rman.c b/src/tools/rman/rman.c index 158b53578c..837b04b569 100644 --- a/src/tools/rman/rman.c +++ b/src/tools/rman/rman.c @@ -1657,15 +1657,15 @@ XML(enum command cmd) { break; case ENDSECTHEAD: case ENDSUBSECTHEAD: - if (sectheadid == NAME) printf(""); + if (sectheadid == NAME) printf("-->"); else if (sectheadid == SYNOPSIS) {} else { printf("\n"); fPara=1; } break; case BEGINSECTION: - if (sectheadid==NAME) printf("\n"); + if (sectheadid==NAME) printf(""); + printf(""); break; case ENDBOLD: printf(""); break; case BEGINITALICS: printf(""); break; /* could be literal or arg */ case ENDITALICS: printf(""); break; @@ -3708,7 +3709,9 @@ source_command(char *p) { p = q; if (p!=NULL) { 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: "?"); }