Skip to content

Commit

Permalink
Fixed the "invalid" escape sequences
Browse files Browse the repository at this point in the history
'\o', '\e'
  • Loading branch information
misharash committed May 28, 2024
1 parent 8243df6 commit 04687ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mkauthlist/mkauthlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ def write_contributions(filename,data):
authorkey = '{%s}'%(d['Authorname'])

if args.orcid and d['ORCID']:
authorkey = authorkey + '\orcidlink{%s}'%d['ORCID']
authorkey = authorkey + '\\orcidlink{%s}'%d['ORCID']

if (d['Affiliation'] not in affidict.keys()):
affidict[d['Affiliation']] = len(affidict.keys())
Expand Down Expand Up @@ -703,7 +703,7 @@ def write_contributions(filename,data):
authorkey = '{%s}'%(d['Authorname'])

if args.orcid and d['ORCID']:
authorkey = authorkey + '\orcidlink{%s}'%d['ORCID']
authorkey = authorkey + '\\orcidlink{%s}'%d['ORCID']

if (d['Affiliation'] not in affidict.keys()):
affidict[d['Affiliation']] = len(affidict.keys())
Expand Down Expand Up @@ -764,8 +764,8 @@ def write_contributions(filename,data):
output += "%% Use \\input to call the file\n\n"

if cls in ['jcap.appendix']:
if args.sort_firsttier: output += "\emailAdd{firsauthor@email}\n\\affiliation{Affiliations are in Appendix \\ref{sec:affiliations}}\n"
else: output += "\\author{{DESI Collaboration}:}\n\emailAdd{spokespersons@desi.lbl.gov}\n\\affiliation{Affiliations are in Appendix \\ref{sec:affiliations}}\n"
if args.sort_firsttier: output += "\\emailAdd{firsauthor@email}\n\\affiliation{Affiliations are in Appendix \\ref{sec:affiliations}}\n"
else: output += "\\author{{DESI Collaboration}:}\n\\emailAdd{spokespersons@desi.lbl.gov}\n\\affiliation{Affiliations are in Appendix \\ref{sec:affiliations}}\n"


if args.doc:
Expand Down

0 comments on commit 04687ca

Please sign in to comment.