Normalize line endings when generating accessibility tree dumps

We already tolerate \r characters that exist in accessibility tree dump
files, but some PDFs have been observed to produce \r characters in the
generated "actual" tree dump, which can throw off the diff. This change
normalizes line endings when generating a tree dump.

Bug: 974397
Change-Id: I40f3f78398d890ef2f3536bfb0f807c455a96dbe
Reviewed-by: Nektarios Paisios <>
Commit-Queue: Kevin Babbitt <>
Cr-Commit-Position: refs/heads/master@{#672098}
1 file changed