Locking devices actuated when platen reaches the end of a line