can't figure out a spacing bug
I have the weirdest bug in my style that I can't seem to fix no matter what I do. For all item types EXCEPT webpage, Zotero perfectly spaces out the title and the container-title. Not with webpage, though, no matter how many different ways I code it. Ideas?
https://gist.github.com/873203
Oh and here's something else weird: A very similarly coded style in which the webpage title is not in quotation marks, and the container-title is not italicized, doesn't have this problem. But in the examples below, all the container-titles are italicized (just not when I pasted them here). The bug only appears in webpage items.
BAD:
Doniger, D. (2010). “The American Power Act: ‘First Read’ of the Kerry-Lieberman Climate and Energy Legislation.”Switchboard, May 13. http://switchboard.nrdc.org/blogs/ddoniger/the_american_power_act_first_r.html.
Mattoon, R. (2008). “Assessing the Midwest Floods of 2008 (and 1993).”Midwest Economy, July 10. http://midwest.chicagofedblogs.org/archives/2008/07/mattoon_flood_b.html.
GOOD:
Dean, C. (2007). “Will Warming Lead to a Rise in Hurricanes?” The New York Times, May 29. New York ed., F1. http://www.nytimes.com/2007/05/29/science/earth/29hurr.html.
Lange, A., Vogt, C. and Ziegler, A. (2007). “On the importance of equity in international climate policy: An empirical analysis.” Energy Economics 29(3), 545–62. DOI:10.1016/j.eneco.2006.09.002.
https://gist.github.com/873203
Oh and here's something else weird: A very similarly coded style in which the webpage title is not in quotation marks, and the container-title is not italicized, doesn't have this problem. But in the examples below, all the container-titles are italicized (just not when I pasted them here). The bug only appears in webpage items.
BAD:
Doniger, D. (2010). “The American Power Act: ‘First Read’ of the Kerry-Lieberman Climate and Energy Legislation.”Switchboard, May 13. http://switchboard.nrdc.org/blogs/ddoniger/the_american_power_act_first_r.html.
Mattoon, R. (2008). “Assessing the Midwest Floods of 2008 (and 1993).”Midwest Economy, July 10. http://midwest.chicagofedblogs.org/archives/2008/07/mattoon_flood_b.html.
GOOD:
Dean, C. (2007). “Will Warming Lead to a Rise in Hurricanes?” The New York Times, May 29. New York ed., F1. http://www.nytimes.com/2007/05/29/science/earth/29hurr.html.
Lange, A., Vogt, C. and Ziegler, A. (2007). “On the importance of equity in international climate policy: An empirical analysis.” Energy Economics 29(3), 545–62. DOI:10.1016/j.eneco.2006.09.002.
Obviously I don't know if you've tried this already.
In any case, this would seem like a csl processor bug, but, since the space is redundant, one that you can avoid.
I did just fix it, but in a way that suggests that a real bug exists.
I knew that until I carved out type="webpage" for separate instructions, I'd never had this problem. So I just took out the separate instructions and added webpage to my <else-if> for article-newspaper and article-magazine. Magically, the problem disappeared.