mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fix rendering glitch with columns on mobile, closes #978
This commit is contained in:
parent
1f021c3711
commit
c11383e628
2 changed files with 12 additions and 1 deletions
|
|
@ -271,7 +271,7 @@ _boring_keyword_re = re.compile(r"^[a-zA-Z_][a-zA-Z0-9_]*$")
|
|||
|
||||
|
||||
def escape_css_string(s):
|
||||
return _css_re.sub(lambda m: "\\{:X}".format(ord(m.group())), s)
|
||||
return _css_re.sub(lambda m: "\\" + ("{:X}".format(ord(m.group())).zfill(6)), s)
|
||||
|
||||
|
||||
def escape_sqlite(s):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue