Beta 7: Notes with annotations exported to HTML contain curly/smart quotes
When notes are exported to HTML, annotations have a HTML
My preference is to remove the curly quotes because many of my annotations are edited to include summary information that I still want to be treated as a direct quote because it is not my work. In this case the curly quotes appear in only part of the annotation. Also, the text is already using
<blockquote>
tag plus curly/smart quotes. That is, the annotation begins <blockquote><p style="margin-left: 30px;">“
and ends with ”</p></blockquote>
. This does not happen when notes are exported as markdown or when the note is inserted into a Word document using "Insert note" from the ribbon/toolbar.My preference is to remove the curly quotes because many of my annotations are edited to include summary information that I still want to be treated as a direct quote because it is not my work. In this case the curly quotes appear in only part of the annotation. Also, the text is already using
<blockquote>
and any adornments or changes can be done with CSS or editing HTML tags.
Can you provide a Debug ID for reproducing this?
I removed the custom note template (extensions.zotero.note.css) and disabled all add-ins/plug-ins before exporting the note as HTML. Same results as explained above.
I have customised annotation highlights (extensions.zotero.annotations.noteTemplates.highlight).
noteTemplates
in the pref name). You'll need to reset that back to the default. Thenote.css
pref has nothing to do with this.You wouldn't get the above output with the blockquote example given in the documentation. As you can see on that page, there's specific behavior to avoid curly quotes in blockquotes. (But there's also no
<p>
, so I'm not sure how you got that.)noteTemplates
. I was sure I followed the documentation you linked to but then again...Changing
noteTemplates.highlight
so that curly quotes are explicitly not wanted (that is,<blockquote>{{highlight quotes='false'}} {{citation}}.</blockquote>
) seems to work but I would need to test a bit more.Many thanks for your help.