When she had finished he; nodded gravely.
He nodded gravely, when she finished.