Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
sujitv19196 committed Sep 20, 2023
1 parent 679ab05 commit fd08082
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/entities/EPubs/structs/EPubChapterLikeData.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ function _buildContentsFromItems(items) {
const content = [];
for (const item of items) {
if (item.image) {
const altText = (item.ocrPhrases ? 'OCR Phrases: ' + item.ocrPhrases + '\n' : '') + (item.ocrText ? 'OCR Text: ' + item.ocrText : '');
// const altText = (item.ocrPhrases ? 'OCR Phrases: ' + item.ocrPhrases + '\n' : '') + (item.ocrText ? 'OCR Text: ' + item.ocrText : '');
const altText = item.ocrPhrases ? 'OCR Phrases: ' + item.ocrPhrases : ''
const imageData = new EPubImageData({src: item.image, alt: altText});
content.push(imageData)
}
Expand Down

0 comments on commit fd08082

Please sign in to comment.