Skip to content

[안드] 듣기시 유효하지 않은 span태그 스킵하도록 #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Feb 18, 2025
2 changes: 1 addition & 1 deletion src/common/tts/TTSPiece.es6
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default class TTSPiece {
const readable = (el.attributes['data-ridi-tts'] || { value: '' }).value.toLowerCase();
let valid = true;

if (this.length === 0 || readable === 'no') {
if (this.length === 0 || el.innerText.trim().length === 0 || readable === 'no') {
valid = false;
} else if (readable !== 'yes') {
if (_Util.getMatchedCSSValue(el, 'display') === 'none'
Expand Down
Loading