mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
Clerk report: disambiguate empty and missing ref lines
This commit is contained in:
parent
1cb2763587
commit
31adaa019f
@ -138,7 +138,11 @@ let diff_command =
|
||||
in
|
||||
match c with
|
||||
| ' ' -> Format.fprintf ppf "%s@{<blue>│@}%s" l r
|
||||
| '>' -> Format.fprintf ppf "%s@{<blue>│@}@{<red>%s@}" l r
|
||||
| '>' ->
|
||||
if String.for_all (( = ) ' ') l then
|
||||
Format.fprintf ppf
|
||||
"%*s@{<red>-@}@{<blue>│@}@{<red>%s@}" (mid - 1) "" r
|
||||
else Format.fprintf ppf "%s@{<blue>│@}@{<red>%s@}" l r
|
||||
| '<' -> Format.fprintf ppf "%s@{<blue>│@}@{<red>-@}" l
|
||||
| '|' ->
|
||||
let w = longuest_common_prefix_length (" " ^ l) r in
|
||||
|
Loading…
Reference in New Issue
Block a user