Sha256: 1da6af7e199b7db9a863ff97d31621796f738852e41d135e60bd8ec61f589674

Contents?: true

Size: 1.29 KB

Versions: 4

Compression:

Stored size: 1.29 KB

Contents

Feature: magic
  As a CSL cite processor hacker
  I want the test magic_PunctuationInQuoteNested to pass

  @citation @magic
  Scenario: Punctuation In Quote Nested
    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 xml:lang="en">
        <style-options punctuation-in-quote="true" />
      </locale>
      <macro name="mytitle">
        <group font-style="italic">
          <text quotes="true" variable="title" />
        </group>
      </macro>
      <citation>
        <layout suffix=".">
          <names suffix=". " variable="author">
            <name form="short" />
          </names>
          <text macro="mytitle"/>
          <date variable="issued" prefix=". ">
            <date-part name="year" />
          </date>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"author":[{"family":"Doe","given":"John","static-ordering":false}],"id":"ITEM-1","issued":{"date-parts":[[1900]]},"title":"Book A","type":"book"}]
    """
    When I cite all items
    Then the result should be:
    """
    Doe. <i>“Book A.”</i> 1900.
    """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/magic/PunctuationInQuoteNested.feature
citeproc-1.0.6 features/magic/PunctuationInQuoteNested.feature
citeproc-1.0.5 features/magic/PunctuationInQuoteNested.feature
citeproc-1.0.4 features/magic/PunctuationInQuoteNested.feature