add new lines to VR caption entries

This commit is contained in:
KDSBrowne 2019-06-18 21:12:20 +00:00
parent b00a5a804f
commit cd9cb596d2
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ export default function appendText(body, textData, locale) {
axios({
method: 'get',
url: appendTextURL(padId, textData),
url: appendTextURL(padId, encodeURIComponent(textData)),
responseType: 'json',
}).then((response) => {
const { status } = response;

View File

@ -152,7 +152,7 @@ class Pad extends Component {
if (finalTranscript !== '' && finalTranscript !== text) {
const ucfirstLetter = (string) => {
const letterIndex = string.charAt(0) === ' ' ? 1 : 0;
const formattedString = ` ${string.charAt(letterIndex).toUpperCase() + string.slice(letterIndex + 1)}.`;
const formattedString = `${string.charAt(letterIndex).toUpperCase() + string.slice(letterIndex + 1)}.\n\n`;
return formattedString;
};