mirror of
https://github.com/CatalaLang/catala.git
synced 2024-09-19 00:15:39 +03:00
Fix again line numbers in HTML
This commit is contained in:
parent
a1ebb6715c
commit
2c40802c57
@ -135,7 +135,7 @@ let pygmentize_code (c : string Marked.pos) (language : C.backend_lang) : string
|
||||
"style=colorful,anchorlinenos=True,lineanchors=\""
|
||||
^ String_common.to_ascii (Pos.get_file (Marked.get_mark c))
|
||||
^ "\",linenos=table,linenostart="
|
||||
^ string_of_int (Pos.get_start_line (Marked.get_mark c) - 1);
|
||||
^ string_of_int (Pos.get_start_line (Marked.get_mark c));
|
||||
"-o";
|
||||
temp_file_out;
|
||||
temp_file_in;
|
||||
|
@ -631,8 +631,8 @@ code:
|
||||
|
||||
metadata_block:
|
||||
| BEGIN_METADATA option(law_text) code_and_pos = code text = END_CODE {
|
||||
let (code, pos) = code_and_pos in
|
||||
(code, (text, pos))
|
||||
let (code, _) = code_and_pos in
|
||||
(code, (text, Pos.from_lpos $sloc))
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user