Skip to content

Commit

Permalink
Merge pull request #329 from unfoldingWord/bugfix-mcleanb-7226
Browse files Browse the repository at this point in the history
Bugfix 7226/Highlighting messes up USFM preview.
  • Loading branch information
mannycolon authored Feb 9, 2022
2 parents eefe8a4 + 68f11db commit 9d76626
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tc-ui-toolkit",
"version": "6.0.1",
"version": "6.0.2",
"description": "React components used to develop tools for the desktop app translationCore",
"main": "lib/index.js",
"display": "library",
Expand Down
2 changes: 1 addition & 1 deletion src/ScripturePane/helpers/verseHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const verseString = (verseText, selections, translate, fontStyle = null,

let verseTextSpans = <span className={fontClass}>{textToHtml(newVerseText, showUsfm)}</span>;

if (selections && selections.length > 0) {
if (!showUsfm && selections && selections.length > 0) {
const _selectionArray = stringTokenizer.selectionArray(newVerseText, selections);
verseTextSpans = [];
verseTextSpans.length = 0;
Expand Down

0 comments on commit 9d76626

Please sign in to comment.