engine.Tail() to ignore trailing whitespaces. Upstream-commit: 227f60ce76a0b73ea0b6534cab34dd7ae777a6f6 Component: engine