erl_prettypr

Mats Cronqvist mats.cronqvist@REDACTED
Fri Jun 24 17:02:03 CEST 2005


   hello,

   i'm trying to make a erl-html filter using syntax-tools (works so-so), but 
i've found this annoying behaviour. if i have this in a file (named tst.erl);

foo(Bla,X)->%hello
     Bla.

   running this beauty;

F="tst.erl",erl_prettypr:format(erl_recomment:recomment_forms(element(2,epp_dodger:parse_file(F)),erl_comment_scan:file(F))).

   will give this;

"foo(Bla,\n    X) ->%hello\n    Bla.

   there shouldn't be a line break between Bla and X. and indeed, if the comment 
is removed there isn't.
   anybody got any advice?

   mats



More information about the erlang-questions mailing list