[TTS] Fix formatting a definition without a middot
The server returns no pronunciation in some languages. This formats poorly - with a trailing dot. This is due to the formatting code relying on the mid-dot to determine if the card is a definition or not. Now we pass in the card type which is authoritative. BUG=1112792, 1117684 Change-Id: If9a4a4ddba9800a8a77212e1cf9d2d1296424dff Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2358450 Commit-Queue: Donn Denman <donnd@chromium.org> Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org> Auto-Submit: Donn Denman <donnd@chromium.org> Reviewed-by:Jinsuk Kim <jinsukkim@chromium.org> Cr-Commit-Position: refs/heads/master@{#799462}
Showing
Please register or sign in to comment