mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge branch 'master' into sk-passport-saml
This commit is contained in:
commit
b67a65ff6a
1 changed files with 12 additions and 9 deletions
|
@ -207,16 +207,19 @@ define [
|
||||||
return doc.split("\n")
|
return doc.split("\n")
|
||||||
|
|
||||||
_aceDeltaSetsToSimpleDeltaSets: (aceDeltaSets, docLines) ->
|
_aceDeltaSetsToSimpleDeltaSets: (aceDeltaSets, docLines) ->
|
||||||
|
simpleDeltaSets = []
|
||||||
for deltaSet in aceDeltaSets
|
for deltaSet in aceDeltaSets
|
||||||
simpleDeltas = []
|
if deltaSet.group == "doc" # ignore fold changes
|
||||||
for delta in deltaSet.deltas
|
simpleDeltas = []
|
||||||
simpleDeltas.push @_aceDeltaToSimpleDelta(delta, docLines)
|
for delta in deltaSet.deltas
|
||||||
docLines = @_applyAceDeltasToDocLines([delta], docLines)
|
simpleDeltas.push @_aceDeltaToSimpleDelta(delta, docLines)
|
||||||
{
|
docLines = @_applyAceDeltasToDocLines([delta], docLines)
|
||||||
deltas: simpleDeltas
|
simpleDeltaSets.push {
|
||||||
group: deltaSet.group
|
deltas: simpleDeltas
|
||||||
}
|
group: deltaSet.group
|
||||||
|
}
|
||||||
|
return simpleDeltaSets
|
||||||
|
|
||||||
_simpleDeltaSetsToAceDeltaSets: (simpleDeltaSets, docLines) ->
|
_simpleDeltaSetsToAceDeltaSets: (simpleDeltaSets, docLines) ->
|
||||||
for deltaSet in simpleDeltaSets
|
for deltaSet in simpleDeltaSets
|
||||||
aceDeltas = []
|
aceDeltas = []
|
||||||
|
|
Loading…
Reference in a new issue