Skip to content

Commit

Permalink
Delete adjacent spaces in edition/publisher pattern
Browse files Browse the repository at this point in the history
Replacing the prefix/suffix adjacent spaces with group and one delimiter space, as described generally in citation-style-language#1301 . Search for this pattern here:

```
<[^/>]*"edition"[^/>]*suffix="[^"/>]* "[^/>]*/?>\s*\r\n\s*<[^/>]*"publisher"[^/>]*prefix=" [^"/>]*"[^/>]*/?>
```
  • Loading branch information
zuphilip committed Jan 1, 2015
1 parent e4c7551 commit a3fea16
Show file tree
Hide file tree
Showing 56 changed files with 223 additions and 117 deletions.
6 changes: 4 additions & 2 deletions acta-anaesthesiologica-scandinavica.csl
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" "/>
<group prefix=" " delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group prefix=" " suffix=". ">
Expand Down
6 changes: 4 additions & 2 deletions acta-societatis-botanicorum-poloniae.csl
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" "/>
<group prefix=" " delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
</group>
<group prefix="(" suffix="). ">
<text variable="collection-title" suffix="; "/>
<text variable="volume" prefix="vol "/>
Expand Down
6 changes: 4 additions & 2 deletions annals-of-neurology.csl
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" " suffix="."/>
<group prefix=" " delimiter=" " suffix=".">
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group prefix=" " suffix=". ">
Expand Down
12 changes: 8 additions & 4 deletions annals-of-oncology.csl
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,18 @@
<text macro="title"/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="edition" suffix=" "/>
<text macro="publisher" prefix=" "/>
<group delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<text macro="editor"/>
<text macro="container-title" suffix=", "/>
<text macro="edition" suffix=". "/>
<text macro="publisher" prefix=" "/>
<group delimiter=" ">
<text macro="edition" suffix="."/>
<text macro="publisher"/>
</group>
</else-if>
<else>
<text macro="container-title" suffix=" "/>
Expand Down
6 changes: 4 additions & 2 deletions archives-of-physical-medicine-and-rehabilitation.csl
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" "/>
<group prefix=" " delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group prefix=" " suffix=". ">
Expand Down
6 changes: 4 additions & 2 deletions arzneimitteltherapie.csl
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" "/>
<group prefix=" " delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group prefix=" " suffix=". ">
Expand Down
6 changes: 4 additions & 2 deletions aviation-space-and-environmental-medicine.csl
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song thesis" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" " suffix="."/>
<group prefix=" " delimiter=" " suffix=".">
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group prefix=" " suffix=". ">
Expand Down
6 changes: 4 additions & 2 deletions biochemical-society-transactions.csl
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" "/>
<group prefix=" " delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group prefix=" " suffix=". ">
Expand Down
6 changes: 4 additions & 2 deletions brain.csl
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" "/>
<group prefix=" " delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group prefix=" " suffix=". ">
Expand Down
6 changes: 4 additions & 2 deletions chest.csl
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" "/>
<group prefix=" " delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group prefix=" " suffix=". ">
Expand Down
6 changes: 4 additions & 2 deletions circulation.csl
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" "/>
<group prefix=" " delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group prefix=" " suffix=". ">
Expand Down
6 changes: 4 additions & 2 deletions clinical-infectious-diseases.csl
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song webpage" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" "/>
<group prefix=" " delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group prefix=" " suffix=". ">
Expand Down
6 changes: 4 additions & 2 deletions critical-care-medicine.csl
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" "/>
<group prefix=" " delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group prefix=" " suffix=". ">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case motion_picture report song" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" "/>
<group prefix=" " delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group prefix=" " suffix=". ">
Expand Down
6 changes: 4 additions & 2 deletions european-journal-of-human-genetics.csl
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" "/>
<group prefix=" " delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group prefix=" " suffix=". ">
Expand Down
8 changes: 5 additions & 3 deletions european-journal-of-ophthalmology.csl
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,11 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song thesis" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" "/>
<text variable="number-of-pages" suffix=" p." prefix=" "/>
<group prefix=" " delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
<text variable="number-of-pages" suffix=" p."/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group prefix=" " suffix=". ">
Expand Down
6 changes: 4 additions & 2 deletions experimental-dermatology.csl
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" " suffix="."/>
<group prefix=" " suffix="." delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group suffix=". ">
Expand Down
6 changes: 4 additions & 2 deletions fertility-and-sterility.csl
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" "/>
<group prefix=" " delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group prefix=" " suffix=". ">
Expand Down
6 changes: 4 additions & 2 deletions future-science-group.csl
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" "/>
<group prefix=" " delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group prefix=" " suffix=". ">
Expand Down
6 changes: 4 additions & 2 deletions hepatology.csl
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" "/>
<group prefix=" " delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group prefix=" " suffix=". ">
Expand Down
6 changes: 4 additions & 2 deletions hong-kong-journal-of-radiology.csl
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" "/>
<group prefix=" " delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group prefix=" " suffix=". ">
Expand Down
6 changes: 4 additions & 2 deletions hypotheses-in-the-life-sciences.csl
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" "/>
<group prefix=" " delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group prefix=" " suffix=". ">
Expand Down
6 changes: 4 additions & 2 deletions international-journal-of-cancer.csl
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" "/>
<group prefix=" " delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
</group>
<text variable="number-of-pages" suffix="p"/>
</if>
<else-if type="chapter paper-conference" match="any">
Expand Down
6 changes: 4 additions & 2 deletions journal-of-forensic-sciences.csl
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" "/>
<group prefix=" " delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group prefix=" " suffix=". ">
Expand Down
6 changes: 4 additions & 2 deletions journal-of-orthopaedic-trauma.csl
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" "/>
<group prefix=" " delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group prefix=" " suffix=". ">
Expand Down
4 changes: 2 additions & 2 deletions journal-of-perinatal-medicine.csl
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<group prefix=". " delimiter=" " suffix=".">
<text macro="edition" suffix=" "/>
<text macro="publisher" prefix=" "/>
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
Expand Down
6 changes: 4 additions & 2 deletions journal-of-shoulder-and-elbow-surgery.csl
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" "/>
<group prefix=" " delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group prefix=" " suffix=". ">
Expand Down
6 changes: 4 additions & 2 deletions journal-of-the-american-society-of-nephrology.csl
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,10 @@
<text macro="title" suffix=". "/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text macro="edition" prefix=" " suffix=" "/>
<text macro="publisher" prefix=" "/>
<group prefix=" " delimiter=" ">
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group prefix=" " suffix=", ">
Expand Down
4 changes: 2 additions & 2 deletions karger-journals-author-date.csl
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<group prefix=". " delimiter=" " suffix=".">
<text macro="edition" suffix=" "/>
<text macro="publisher" prefix=" "/>
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
Expand Down
4 changes: 2 additions & 2 deletions karger-journals.csl
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<group prefix=". " delimiter=" " suffix=".">
<text macro="edition" suffix=" "/>
<text macro="publisher" prefix=" "/>
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
Expand Down
Loading

0 comments on commit a3fea16

Please sign in to comment.