mirror of
https://github.com/zotero/zotero.git
synced 2026-10-05 02:43:38 +00:00
Remove lh and text-indent logic in cite.js.
Removed the minimum line height enforcement and hanging indentation logic. This is because these styles should not be enforced upon clipboard duplication, as the user may not want this, and is unable to disable it.
This commit is contained in:
parent
3c959e1012
commit
ac287cfe31
1 changed files with 0 additions and 17 deletions
|
|
@ -310,23 +310,6 @@ Zotero.Cite = {
|
|||
// One of the characters is usually a period, so we can adjust this down a bit
|
||||
maxOffset = Math.max(1, maxOffset - 2);
|
||||
|
||||
// Force a minimum line height
|
||||
if(lineSpacing <= 1.35) lineSpacing = 1.35;
|
||||
|
||||
var style = div.getAttribute("style");
|
||||
if(!style) style = "";
|
||||
style += "line-height: " + lineSpacing + "; ";
|
||||
|
||||
if(hangingIndent) {
|
||||
if (multiField && !secondFieldAlign) {
|
||||
throw ("second-field-align=false and hangingindent=true combination is not currently supported");
|
||||
}
|
||||
// If only one field, apply hanging indent on root
|
||||
else if (!multiField) {
|
||||
style += "margin-left: 2em; text-indent:-2em;";
|
||||
}
|
||||
}
|
||||
|
||||
if(style) div.setAttribute("style", style);
|
||||
|
||||
// csl-entry
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue