add new lines to VR caption entries
This commit is contained in:
parent
b00a5a804f
commit
cd9cb596d2
@ -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;
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user