Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
why3
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Boards
Labels
Milestones
Merge Requests
11
Merge Requests
11
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
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