Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
7038e08e
Commit
7038e08e
authored
Apr 22, 2012
by
Guillaume Melquiond
Browse files
Try to avoid superfluous spaces in why3doc output, so that the html source is readable.
parent
9d234c66
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/why3doc/doc_lexer.mll
View file @
7038e08e
...
...
@@ -165,12 +165,12 @@ and string fmt do_output = parse
string fmt do_output lexbuf }
and doc fmt block headings = parse
| "
*
)
" { if block then fprintf fmt "
</
p
>@
\
n
" }
|
' '*
"
*
)
" { if block then fprintf fmt "
</
p
>@
\
n
" }
| eof { () }
| "
\
n
" { newline lexbuf;
fprintf fmt "
\
n
";
doc fmt block headings lexbuf }
| '{' (['1'-'6'] as c)
| '{' (['1'-'6'] as c)
' '*
{ if block then fprintf fmt "
</
p
>@
\
n
";
let n = Char.code c - Char.code '0' in
fprintf fmt "
<
h
%
d
>
" n;
...
...
@@ -188,7 +188,7 @@ and doc fmt block headings = parse
| [] -> brace headings
| n :: r ->
if n >= 1 then begin
fprintf fmt "
</
h
%
d
>
@
\
n
" n;
fprintf fmt "
</
h
%
d
>
" n;
doc fmt (r <> []) r lexbuf
end else brace r
}
...
...
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