Skip to content

Commit a6aba22

Browse files
Merge branch 'release/1.1'
2 parents 739888f + 493838b commit a6aba22

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016 Felipe Silveira de Souza Schneider
3+
Copyright (c) 2016--2018 Felipe Silveira de Souza Schneider
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ any more.
1414
## Usage
1515

1616
$ doi2bib 10.1021/la203078w 10.1103/PhysRev.140.A1133
17+
1718
@article{Cabaleiro_Lago_2012,
1819
title={The Effect of Nanoparticles on Amyloid Aggregation Depends on the Protein Stability and Intrinsic Aggregation Rate},
1920
volume={28},

doi2bib

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
# The MIT License (MIT)
33
#
4-
# Copyright (c) 2016 Felipe Silveira de Souza Schneider
4+
# Copyright (c) 2016--2018 Felipe Silveira de Souza Schneider
55
#
66
# Permission is hereby granted, free of charge, to any person obtaining a copy
77
# of this software and associated documentation files (the "Software"), to deal
@@ -21,7 +21,7 @@
2121
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
# SOFTWARE.
2323
#
24-
#? doi2bib 1.0
24+
#? doi2bib 1.1
2525
#?
2626
#? Convert Digital Object Identifier (DOI) to BibTeX using crosscite.org.
2727
#? DOIs are received and the corresponding BibTeX entries are output.
@@ -73,7 +73,8 @@ for doi in "$@"; do
7373

7474
# we retrieve the data from http://dx.doi.org/
7575
curl -s -LH "Accept: text/bibliography; style=bibtex" "http://dx.doi.org/${doi}" | \
76-
sed -e 's/^ *//' \
77-
-e 's/, /,\n /g' \
78-
-e 's/}}$/}\n}\n/'
76+
sed -e $'s/^ *//' \
77+
-e $'s/}, /},\\\n /g' \
78+
-e $'s/, /,\\\n /1' \
79+
-e $'s/}}$/}\\\n}\\\n/'
7980
done

0 commit comments

Comments
 (0)