Skip to content

Commit

Permalink
fixes #137
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Jan 3, 2025
1 parent 717de3c commit 2b99bfe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lodstorage/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.13.3"
__version__ = "0.14.0"
3 changes: 2 additions & 1 deletion lodstorage/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from pygments.formatters.html import HtmlFormatter
from pygments.formatters.latex import LatexFormatter
from pygments.lexers import get_lexer_by_name
from pylatexenc.latexencode import unicode_to_latex
from tabulate import tabulate

# from wikibot.mwTable import MediaWikiTable
Expand Down Expand Up @@ -259,6 +258,8 @@ def uniCode2Latex(text: str, withConvert: bool = False) -> str:
for code in range(8320, 8330):
text = text.replace(chr(code), f"$_{code-8320}$")
if withConvert:
# workaround - hidden dependency!
from pylatexenc.latexencode import unicode_to_latex
latex = unicode_to_latex(text)
# workaround {\textbackslash} being returned
# latex=latex.replace("{\\textbackslash}",'\\')
Expand Down
2 changes: 1 addition & 1 deletion lodstorage/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ class Version(object):
name = "pylodstorage"
version = lodstorage.__version__
date = "2020-09-10"
updated = "2024-11-02"
updated = "2025-01-03"
description = "python List of Dict (Table) Storage library"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies = [
"tabulate",
"numpy",
"jsonpickle==1.5.2",
"pylatexenc~=2.10",
# "pylatexenc~=2.10",
"pygments",
"dicttoxml2",
# https://pypi.org/project/dataclasses-json/
Expand Down

0 comments on commit 2b99bfe

Please sign in to comment.