cancel
Showing results for 
Search instead for 
Did you mean: 

Line endings - bug in CubeMX, all versions

trzeci
Associate II

Code generated by CubeMX use Windows line-endings, which generate huge problems under other operating systems (repository, editors, etc.). You have to strip CR-LFs after every code generation.
Somebody should use standard method of platform-independent text file generation (StringBuffer and System.lineSeparator()).

10 REPLIES 10

With more positive attitude and if you won't mind calling this bug 'feature request' this may get traction ))

@STTwo-32  ??

IIRC readline() can be configured to ignore CR with ~/.inputrc or some rl_... function.