From d78383a4c3c7e8bd49f25c9aacf591b96db91b38 Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Fri, 14 Apr 2006 10:13:55 +0000 Subject: [PATCH] alases instance not printed if 0 --- helm/software/components/lexicon/lexiconAstPp.ml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/helm/software/components/lexicon/lexiconAstPp.ml b/helm/software/components/lexicon/lexiconAstPp.ml index 4b20958aa..23f008296 100644 --- a/helm/software/components/lexicon/lexiconAstPp.ml +++ b/helm/software/components/lexicon/lexiconAstPp.ml @@ -35,8 +35,10 @@ let pp_l2_pattern = CicNotationPp.pp_term let pp_alias = function | Ident_alias (id, uri) -> sprintf "alias id \"%s\" = \"%s\"" id uri | Symbol_alias (symb, instance, desc) -> - sprintf "alias symbol \"%s\" (instance %d) = \"%s\"" - symb instance desc + sprintf "alias symbol \"%s\" %s= \"%s\"" + symb + (if instance=0 then "" else "(instance "^ string_of_int instance ^ ") ") + desc | Number_alias (instance,desc) -> sprintf "alias num (instance %d) = \"%s\"" instance desc -- 2.39.2