Commit c7a5f6b1 authored by Martin Koller's avatar Martin Koller

Fix closing bracket output position and linebreak in SYNOPSIS section

BUG: 144942
FIXED-IN: 14.12.1
parent adae2b73
...@@ -5161,7 +5161,7 @@ static char *scan_request(char *c) ...@@ -5161,7 +5161,7 @@ static char *scan_request(char *c)
case REQ_Op: /* mdoc(7) */ case REQ_Op: /* mdoc(7) */
{ {
trans_char(c, '"', '\a'); trans_char(c, '"', '\a');
c = c + j; c += j;
if (*c == '\n') c++; if (*c == '\n') c++;
out_html(set_font("R")); out_html(set_font("R"));
out_html("["); out_html("[");
...@@ -5178,7 +5178,7 @@ static char *scan_request(char *c) ...@@ -5178,7 +5178,7 @@ static char *scan_request(char *c)
case REQ_Oo: /* mdoc(7) */ case REQ_Oo: /* mdoc(7) */
{ {
trans_char(c, '"', '\a'); trans_char(c, '"', '\a');
c = c + j; c += j;
if (*c == '\n') c++; if (*c == '\n') c++;
out_html(set_font("R")); out_html(set_font("R"));
out_html("["); out_html("[");
...@@ -5192,10 +5192,10 @@ static char *scan_request(char *c) ...@@ -5192,10 +5192,10 @@ static char *scan_request(char *c)
case REQ_Oc: /* mdoc(7) */ case REQ_Oc: /* mdoc(7) */
{ {
trans_char(c, '"', '\a'); trans_char(c, '"', '\a');
c = c + j; c += j;
c = scan_troff_mandoc(c, 1, NULL);
out_html(set_font("R")); out_html(set_font("R"));
out_html("]"); out_html("]");
c = scan_troff_mandoc(c, 1, NULL);
if (fillout) if (fillout)
curpos++; curpos++;
else else
...@@ -5319,6 +5319,15 @@ static char *scan_request(char *c) ...@@ -5319,6 +5319,15 @@ static char *scan_request(char *c)
out_html(set_font("B")); out_html(set_font("B"));
if ( mandoc_synopsis && mandoc_name_count )
{
/* Break lines only in the Synopsis.
* The Synopsis section seems to be treated
* as a special case - Bummer!
*/
out_html("<BR>");
}
// only show name if // only show name if
// .Nm (first not-null-length defined name) // .Nm (first not-null-length defined name)
// .Nm name // .Nm name
...@@ -5332,8 +5341,8 @@ static char *scan_request(char *c) ...@@ -5332,8 +5341,8 @@ static char *scan_request(char *c)
c = scan_troff_mandoc(argPointers[0], 1, 0); c = scan_troff_mandoc(argPointers[0], 1, 0);
} }
mandoc_name_count++;
out_html(set_font("R")); out_html(set_font("R"));
#if 0 #if 0
if (mandoc_synopsis && mandoc_name_count) if (mandoc_synopsis && mandoc_name_count)
{ {
...@@ -5427,7 +5436,7 @@ static char *scan_request(char *c) ...@@ -5427,7 +5436,7 @@ static char *scan_request(char *c)
case REQ_nN: /* mdoc(7) */ case REQ_nN: /* mdoc(7) */
{ {
trans_char(c, '"', '\a'); trans_char(c, '"', '\a');
c = c + j; c += j;
if (*c == '\n') c++; if (*c == '\n') c++;
out_html(set_font("B")); out_html(set_font("B"));
c = scan_troff_mandoc(c, 1, NULL); c = scan_troff_mandoc(c, 1, NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment