Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
5a22bea7
Commit
5a22bea7
authored
13 years ago
by
Morris Jette
Browse files
Options
Downloads
Patches
Plain Diff
Revert "make the man2html more general"
This reverts commit 48f468ea7136d27bee8c598eb58c0390be7f9ca8.
parent
199bd01c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/man/man2html.py
+3
-8
3 additions, 8 deletions
doc/man/man2html.py
with
3 additions
and
8 deletions
doc/man/man2html.py
+
3
−
8
View file @
5a22bea7
...
@@ -88,12 +88,8 @@ def llnl_references(line):
...
@@ -88,12 +88,8 @@ def llnl_references(line):
return
lineFix
return
lineFix
return
line
return
line
# NOTE: Different versions of man2html generated different paths
def
relative_reference
(
lineIn
):
def
relative_reference
(
lineIn
,
mode
):
fullRef
=
"
http://localhost/cgi-bin/man/man2html
"
if
mode
==
1
:
fullRef
=
"
http://localhost/cgi-bin/man/man2html
"
else
:
fullRef
=
"
/cgi-bin/man/man2html
"
lenRef
=
len
(
fullRef
)
lenRef
=
len
(
fullRef
)
lineOt
=
""
lineOt
=
""
cursor
=
0
cursor
=
0
...
@@ -189,8 +185,7 @@ for filename in files:
...
@@ -189,8 +185,7 @@ for filename in files:
#insert tags for some options
#insert tags for some options
insert_tag
(
html
,
line
)
insert_tag
(
html
,
line
)
# Make man2html links relative ones
# Make man2html links relative ones
line
=
relative_reference
(
line
,
1
)
line
=
relative_reference
(
line
)
line
=
relative_reference
(
line
,
2
)
line
=
url_regex
.
sub
(
url_rewrite
,
line
)
line
=
url_regex
.
sub
(
url_rewrite
,
line
)
html
.
write
(
line
)
html
.
write
(
line
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment