Issue #995 (changed API)

However, bug if offset line (the first on page) is blank.