diff options
| author | Emilio Jesus Gallego Arias | 2018-05-14 15:31:16 +0200 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2018-05-14 15:31:16 +0200 |
| commit | 16e01cbeeff7e5835424ecdf8347b01e83e829e8 (patch) | |
| tree | 1d3e21e4eefa1ec8bb5443f256dbcbf558cd9c3a /interp/notation.ml | |
| parent | 2dcc280452818a7502d31a415403629baa502bd3 (diff) | |
| parent | ea271504e92ec30991e9767e0fbe2e536bc3417e (diff) | |
Merge PR #7502: Fixing little printing bug with "Locate" on recursive notations
Diffstat (limited to 'interp/notation.ml')
| -rw-r--r-- | interp/notation.ml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/interp/notation.ml b/interp/notation.ml index 20e46bfe3f..e6df7b96c9 100644 --- a/interp/notation.ml +++ b/interp/notation.ml @@ -1051,7 +1051,7 @@ let locate_notation prglob ntn scope = | [] -> str "Unknown notation" | _ -> str "Notation" ++ fnl () ++ - prlist (fun (ntn,l) -> + prlist_with_sep fnl (fun (ntn,l) -> let scope = find_default ntn scopes in prlist (fun (sc,r,(_,df)) -> @@ -1060,8 +1060,7 @@ let locate_notation prglob ntn scope = (if String.equal sc default_scope then mt () else (spc () ++ str ": " ++ str sc)) ++ (if Option.equal String.equal (Some sc) scope - then spc () ++ str "(default interpretation)" else mt ()) - ++ fnl ())) + then spc () ++ str "(default interpretation)" else mt ()))) l) ntns let collect_notation_in_scope scope sc known = |
