-
Notifications
You must be signed in to change notification settings - Fork 13
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
Empty italic tag in clues causes rest of clue to be italicized #171
Comments
Probably not a huge priority in the grand scheme of things, but I guess the next step here would be to try to reproduce this with a smaller sample app and pass the report along to wxWidgets. EDIT: I originally posted this without escaping the |
Hmm . . . looking through what I think is the jpz schema, it seems like clue text is actually XML, not a string of html? In which case So . . . maybe this needs to be handled in the jpz parser? We could convert self-closing tags to the equivalent empty tag, or perhaps just remove them entirely since that should render the same way. |
I realized that I filed this as part of investigating the clue mentioned in jpd236/kotwords#24, and indeed that specific clue is still a working repro case where the italic tag is non-empty (and thus not self-closing). So it does seem like there's more to this. Attached a sample JPZ where the clue for 1-Across is:
This renders correctly in Crossword Solver, but in XWord, the space is omitted, and "italicized space" is in italics. |
The following XML in a JPZ clue:
Causes "more of the clue" to be italicized even though it's not actually enclosed in the italics. This also seems to happen with a regular empty tag instead of a self-closing tag, and also if there's whitespace inside the tag; there has to be some non-blank character for the parsing to work correctly, AFAICT.
The text was updated successfully, but these errors were encountered: