per bug 26619 this should not trim leading whitespace, which is meaningful in wiki syntax. Change to rtrim()?
Fixed up in r79844