Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Unmaintained
KDE Runtime
Commits
c7a5f6b1
Commit
c7a5f6b1
authored
Jan 08, 2015
by
Martin Koller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix closing bracket output position and linebreak in SYNOPSIS section
BUG: 144942 FIXED-IN: 14.12.1
parent
adae2b73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
kioslave/man/man2html.cpp
kioslave/man/man2html.cpp
+15
-6
No files found.
kioslave/man/man2html.cpp
View file @
c7a5f6b1
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment