Don't overwrite changed citations. They will (sadly) lose their formatting in OOo at the moment.
This commit is contained in:
parent
92f0fa9097
commit
b9eb8ecb15
|
@ -861,7 +861,8 @@ Zotero.Integration.Document.prototype._updateDocument = function(forceCitations,
|
|||
(this._session.data.prefs.storeReferences ? "ITEM CSL_CITATION" : "ITEM")
|
||||
+" "+fieldCode);
|
||||
|
||||
if(this._session.data.prefs.fieldType === "ReferenceMark" && isRich) {
|
||||
if(this._session.data.prefs.fieldType === "ReferenceMark" && isRich
|
||||
&& !citation.properties.dontUpdate) {
|
||||
// For ReferenceMarks with formatting, we need to set the text again, because
|
||||
// setting the field code removes formatting from the mark. I don't like this.
|
||||
field.setText(citation.properties.custom ? citation.properties.custom
|
||||
|
|
Loading…
Reference in New Issue
Block a user