Sha256: 0829cbd2cedd9e82ac37f5df4eb6513e2fa76a7af0de0db4a185f0ea63a3e346

Contents?: true

Size: 1.7 KB

Versions: 4

Compression:

Stored size: 1.7 KB

Contents

Feature: punctuation
  As a CSL cite processor hacker
  I want the test punctuation_DelimiterWithStripPeriodsAndSubstitute3 to pass

  @bibliography @punctuation
  Scenario: Delimiter With Strip Periods And Substitute3
    Given the following style:
    """
    <style 
          xmlns="http://purl.org/net/xbiblio/csl"
          class="note"
          version="1.0">
      <info>
        <id />
        <title />
        <updated>2009-08-10T04:49:00+09:00</updated>
      </info>
      <locale>
        <terms>
          <term name="editor" form="short">
            <single>ed</single>
            <multiple>eds</multiple>
          </term>
        </terms>
      </locale>
      <macro name="creator-macro">
        <names variable="author">
          <name and="text" delimiter-precedes-last="never" initialize-with=""/>
          <label form="short" prefix=" "/>
          <substitute>
            <names variable="editor"/>
          </substitute>
        </names>
      </macro>
      <citation>
        <layout>
          <text value="bogus"/>
        </layout>
      </citation>
      <bibliography>
        <layout>
          <group delimiter=". ">
            <text macro="creator-macro"/>
            <text variable="title"/>
          </group>
        </layout>
      </bibliography>
    </style>
    """
    And the following input:
    """
    [{"editor":[{"family":"Doe","given":"John"},{"family":"Roe","given":"Jane"},{"family":"Noakes","given":"Richard"}],"id":45,"title":"Book Title","type":"book"}]
    """
    When I render the entire bibliography
    Then the bibliography should be:
    """
    <div class="csl-bib-body">
      <div class="csl-entry">J Doe, J Roe and R Noakes eds. Book Title</div>
    </div>
    """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/punctuation/DelimiterWithStripPeriodsAndSubstitute3.feature
citeproc-1.0.6 features/punctuation/DelimiterWithStripPeriodsAndSubstitute3.feature
citeproc-1.0.5 features/punctuation/DelimiterWithStripPeriodsAndSubstitute3.feature
citeproc-1.0.4 features/punctuation/DelimiterWithStripPeriodsAndSubstitute3.feature