Opened 6 years ago
Closed 6 years ago
#30365 closed Cleanup/optimization (fixed)
Sphinx interprets some "%[a-z]" in SQL statements as "Literal.String.Interpol" which breaks highlighting.
Reported by: | Daniel Musketa | Owned by: | Daniel Musketa |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
Example:
SQL equivalent:: SELECT ... WHERE headline LIKE '%Lennon%';
which leads to
<span class="si">%Le</span><span class="s1">nnon%'
Change History (6)
comment:1 by , 6 years ago
Has patch: | set |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
comment:2 by , 6 years ago
Resolution: | fixed |
---|---|
Status: | closed → new |
Ticket is not fixed because PR is not merged.
comment:3 by , 6 years ago
Easy pickings: | set |
---|---|
Summary: | Sphinx interprets some "%[a-z]" in SQL statements as "Literal.String.Interpol" which leads to weird highlighting → Sphinx interprets some "%[a-z]" in SQL statements as "Literal.String.Interpol" which leads to weird highlighting. |
Triage Stage: | Unreviewed → Accepted |
Version: | 2.2 → master |
comment:4 by , 6 years ago
Summary: | Sphinx interprets some "%[a-z]" in SQL statements as "Literal.String.Interpol" which leads to weird highlighting. → Sphinx interprets some "%[a-z]" in SQL statements as "Literal.String.Interpol" which breaks highlighting. |
---|
comment:5 by , 6 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.
Solution:
Mark SQL examples as
.. code-block:: sql
I tried to find other occurances of unmarked SQL code.
https://github.com/django/django/pull/11217