Restoring ~ from container names, removing formatting line breaks