Skip to content

Commit

Permalink
fix: Drop dependency on kitchen (#913)
Browse files Browse the repository at this point in the history
Kitchen is unmainted and should no longer be used, hence we this drops
the dependency on kitchen.
  • Loading branch information
Flowdalic authored Oct 13, 2022
1 parent 908365f commit 0b42319
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ html5lib>=1.0.1
intervaltree>=3.1.0
jinja2>=3.1.2
markupsafe>=2.1.1
kitchen>=1.2.6
lxml>=4.9.0
pycountry>=22.3.5
pyyaml>=5.3.1
Expand Down
7 changes: 4 additions & 3 deletions xml2rfc/writers/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

from codecs import open
from collections import namedtuple
from kitchen.text.display import textual_width as displength
from lxml import etree

try:
Expand Down Expand Up @@ -1797,8 +1796,10 @@ def join_cols(left, right):
for i in range(t):
l = left[i]
r = right[i]
#assert displength(l)+displength(r)<70
w = 72-displength(l)-displength(r)
textwidth_l = textwidth(l)
textwidth_r = textwidth(r)
#assert textwidth_l+textwidth_r< 70
w = 72-textwidth_l-textwidth_r
lines.append(l+' '*w+r)
return '\n'.join(lines).rstrip(stripspace)+'\n'
#
Expand Down

0 comments on commit 0b42319

Please sign in to comment.