Menu

Template insertion does not honor the project's new text file delimiter

2014-10-09
2014-11-12
  • Andrew@DeFaria.com

    I have my Eclipse projects setup to use Unix style line endings and I have configured the editor such that if there are those pesky extra carriage returns that Windows users seem to love then they show up with characters. When I use a template - for example I have a lot of them but tend to use a "sub" template a lot which sets up:

    1
    2
    3
    4
    5
    6
    7
    #!/usr/bin/perl
    ...
    sub <name> () {
      my () = @_;
    
      return;
    } # <name>
    

    as a template for a sub. But when I do this I get those pesky extra carriage returns again! The templating system should honor the setting of the projects new text file delimiter and not add additional carriage returns.

     
  • Oliver Trosien

    Oliver Trosien - 2014-10-09

    Hi Andrew,

    that was also something that was bugging me for some time. I sent a pull request for it.

    https://github.com/jploski/epic-ide/pull/8

     
    • Andrew@DeFaria.com

      Cool!

       

Log in to post a comment.