Find correct line feed in text,
fix for right placement of header with noreferences.py (Bug 55409)
(update from compat gerrit 88121)

Change-Id: I9de67bfb3713106c30d26af9c6faf30c0156c4df