# [XeTeX] Search and replace (removing line break) for chapter title used in header

Pander pander at users.sourceforge.net
Wed Jun 24 11:06:55 CEST 2009

```Hi all,

Is it possible to do a search and replace which removes line breaks from
the chapter's title which I use in (fanncy) header?

Sometimes, the title of a chapter looks better with a manual line break.
with a space. Fancy header is not replacing this, resulting in a line

How can I do this in manually in my definition: