Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Why3
why3
Commits
3d4d5e02
Commit
3d4d5e02
authored
Aug 31, 2014
by
MARCHE Claude
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
why3doc: if no output dir given, do not substitute / by . in filename,
so as to keep the full path unchanged
parent
0226395a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/why3doc/doc_def.ml
src/why3doc/doc_def.ml
+4
-4
No files found.
src/why3doc/doc_def.ml
View file @
3d4d5e02
...
...
@@ -22,10 +22,11 @@ let dir_sep = Str.regexp_string Filename.dir_sep
let
output_file
fname
=
let
fname
=
Filename
.
chop_extension
fname
in
let
f
=
Str
.
global_replace
dir_sep
"."
fname
in
let
base
=
match
!
output_dir
with
|
None
->
f
|
Some
dir
->
Filename
.
concat
dir
f
|
None
->
fname
|
Some
dir
->
let
f
=
Str
.
global_replace
dir_sep
"."
fname
in
Filename
.
concat
dir
f
in
base
^
".html"
...
...
@@ -86,4 +87,3 @@ let locate id =
try
Mlw_module
.
restore_path
id
with
Not_found
->
Theory
.
restore_path
id
in
let
url
=
if
lp
=
[]
then
""
else
make_url
(
String
.
concat
"."
lp
)
in
url
^
"#"
^
anchor
id
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