--- a/Plugins/PluginEricapi.py Sat May 15 10:19:07 2010 +0200 +++ b/Plugins/PluginEricapi.py Sat May 15 15:29:39 2010 +0200 @@ -139,6 +139,11 @@ """ Private slot to perform the eric5-api api generation. """ + eolTranslation = { + '\r' : 'cr', + '\n' : 'lf', + '\r\n' : 'crlf', + } project = e5App().getObject("Project") parms = project.getData('DOCUMENTATIONPARMS', "ERIC4API") dlg = EricapiConfigDialog(project, parms) @@ -146,14 +151,18 @@ args, parms = dlg.generateParameters() project.setData('DOCUMENTATIONPARMS', "ERIC4API", parms) + # add parameter for the eol setting + if not project.useSystemEol(): + args.append("--eol=%s" % eolTranslation[project.getEolString()]) + # now do the call dia = EricapiExecDialog("Ericapi") res = dia.start(args, project.ppath) if res: dia.exec_() - + outputFileName = parms['outputFile'] - + # add output files to the project data, if they aren't in already for progLanguage in parms['languages']: if "%L" in outputFileName: @@ -169,4 +178,4 @@ if outfile not in project.pdata['OTHERS']: project.pdata['OTHERS'].append(outfile) project.setDirty(True) - project.othersAdded(outfile) \ No newline at end of file + project.othersAdded(outfile)