fix single-char bdword link

This commit is contained in:
千住柱間 2024-05-21 00:22:50 -04:00
parent a3ceaf9db0
commit 315ebc10f3
Signed by: hashirama
GPG key ID: 53E62470A86BC185

View file

@ -215,7 +215,7 @@ inline void wrap_html_output(
std::cerr << "Error: Unable to remove a character from the sentence. Exiting to prevent infinite loop." << std::endl; std::cerr << "Error: Unable to remove a character from the sentence. Exiting to prevent infinite loop." << std::endl;
break; break;
} }
output_html += "<div class=\"segment\">" + removed_char + "</div>"; output_html += "<div class=\"segment\"> <a href=\"bword:" + removed_char + "\">" + removed_char + "</a></div>";
sentence_copy = new_sentence_copy; sentence_copy = new_sentence_copy;
} }
} }