[citeproc-js] second-field-align

second-field-align="flush" does not seem to be rendering properly. (Edit: it only seems to affect vancouver-author-date. At least I haven't found another style that's affected by this)

E.g. Vancouver (author-date) style on http://www.zotero.org/styles does not display anything. Inspection of the generate HTML reveals
<div class="csl-left-margin" style="float: left; padding-right: 0.5em; text-align: right; width: 86em;">
Hogue CWV. Structure Databases.
</div>
<div class="csl-right-inline" style="margin: 0 .4em 0 86.5em;">
In: Baxevanis AD, Ouellette BFF, editors. Bioinformatics. 2nd ed. New York, NY: Wiley-Interscience; 2001. p. 83–109.
</div>

Note the width and the left margin sizes: 86em!!

This also renders a huge field in MS Word. (Edit: or two columns, I think depending on the reference you insert)

Re: https://twitter.com/drGavBuckingham/status/329575909722058753
  • I think the main point would be that author-date styles shouldn't have second-field-align set. That doesn't make any sense. And if the first field includes a long field (like the "Method and system..." title used in he example) then the weird behavior you're seeing might actually be right.
  • What is a Vancouver bibliography supposed to look like on the page? Second-field-align with the author and title as the first "field" seems an odd formatting combination. The attribute was meant for use mostly with numeric styles, I think.
  • Good point. I guess the fix is straightforward then. Could you take care of it?
  • I've already fixed it, just running the test before committing it. I'll grep later to make sure there aren't other examples of this, I had fixed this for the Springer version of this before.
  • fix is up on the repo.
  • I grep'ed and all other author-date styles with second-field-align have either a numbered bibliography or an identifier (e.g. din-1505-2-alphanumeric) So this seems to be the odd one out.
Sign In or Register to comment.