marcusgreen / moodle-qtype_wordselect

langHighlight words by clicking e.g. select all nouns in this sentence
2 stars 10 forks source link

add too much space after word select item. #10

Closed lethevinh closed 6 years ago

lethevinh commented 6 years ago

when displaying the question content , I found too much white space added before each word bolded or underlined. screenshot from 2018-03-23 16-17-39

https://github.com/marcusgreen/moodle-qtype_wordselect/blob/8f91e7acaafd8efc213fa2d351ece14ffaa011cb/question.php#L575

marcusgreen commented 6 years ago

Which branch is that from. I have been working on a significant refactor in the main branch recently. It is not finished and I am aware of at least one fairly significant bug in it, but it is the general direction I am going in. The bug is that it does not handle selectables without spaces, i.e. it would render [cat]x[mat] incorrectly. I have been working on a fix for that but I will not have anything to show for at least a week or possibly more. When I do a new release I would like to give you credit for feedback, so send an email to marcusavgreen at gmail dot com if you would like me to include your details.

marcusgreen commented 6 years ago

Let me know if you are awesome with regular expressions as you might be able to fix that bug I just mentioned :)

marcusgreen commented 6 years ago

Closing this as lethevinh is awesome with regular expressions....