Interface AdocDiffMarker.StampSource

Enclosing class:
AdocDiffMarker

public static interface AdocDiffMarker.StampSource
Source of STAMP endnote refs for marked regions (ike-issues#656). When provided, each change boundary's last marked line gains a reusable footnote ref — collapsed to one per paragraph when every boundary in the paragraph shares the same stamp.
  • Method Summary

    Modifier and Type
    Method
    Description
    activeRef(int newLineIndex)
    The footnote macro for an Active region (insertion or replacement) whose last new-side line has the given index.
    The footnote macro for an Inactive region (unpaired deletion).
  • Method Details

    • activeRef

      String activeRef(int newLineIndex)
      The footnote macro for an Active region (insertion or replacement) whose last new-side line has the given index.
      Parameters:
      newLineIndex - the region's last to-side line index
      Returns:
      the footnote:id[text] macro, or null to skip stamping this region
    • inactiveRef

      String inactiveRef()
      The footnote macro for an Inactive region (unpaired deletion).
      Returns:
      the footnote:id[text] macro, or null