Fix bug noticed by Scott.

Since there may be subfloats, we do not want to move past the end
of a float when modifying it.
This commit is contained in:
Richard Kimberly Heck 2020-06-14 15:33:06 -04:00
parent 8e33b681a8
commit 2a2f15ec03

View File

@ -744,7 +744,9 @@ def revert_floatalignment(document):
alcmd = put_cmd_in_ert("\\raggedleft{}")
if len(alcmd) > 0:
document.body[l+1:l+1] = alcmd
i = j
# There might be subfloats, so we do not want to move past
# the end of the inset.
i += 1
def revert_tuftecite(document):
"""Revert \cite commands in tufte classes"""