aboutsummaryrefslogtreecommitdiff
path: root/interp/notation.ml
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2018-05-14 15:31:16 +0200
committerEmilio Jesus Gallego Arias2018-05-14 15:31:16 +0200
commit16e01cbeeff7e5835424ecdf8347b01e83e829e8 (patch)
tree1d3e21e4eefa1ec8bb5443f256dbcbf558cd9c3a /interp/notation.ml
parent2dcc280452818a7502d31a415403629baa502bd3 (diff)
parentea271504e92ec30991e9767e0fbe2e536bc3417e (diff)
Merge PR #7502: Fixing little printing bug with "Locate" on recursive notations
Diffstat (limited to 'interp/notation.ml')
-rw-r--r--interp/notation.ml5
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 =