mirror of
https://github.com/jsvine/pdfplumber.git
synced 2026-08-29 08:34:23 +08:00
Remove vestigial 'font' and 'name' properties
This commit is contained in:
@@ -51,9 +51,7 @@ ALL_ATTRS = set(
|
||||
"bits",
|
||||
"matrix",
|
||||
"upright",
|
||||
"font",
|
||||
"fontname",
|
||||
"name",
|
||||
"text",
|
||||
"imagemask",
|
||||
"colorspace",
|
||||
|
||||
@@ -70,7 +70,7 @@ class Test(unittest.TestCase):
|
||||
assert c.split("\r\n")[9] == (
|
||||
"char,1,45.83,58.826,656.82,674.82,117.18,117.18,135.18,12.996,"
|
||||
'18.0,12.996,,,,,,TimesNewRomanPSMT,,,"(1, 0, 0, 1, 45.83, 660.69)"'
|
||||
',,DeviceRGB,"(0, 0, 0)",,,18.0,,,,,,Y,,1,'
|
||||
',DeviceRGB,"(0, 0, 0)",,,18.0,,,,,,Y,,1,'
|
||||
)
|
||||
|
||||
io = StringIO()
|
||||
@@ -125,7 +125,7 @@ class Test(unittest.TestCase):
|
||||
assert res.decode("utf-8").split("\r\n")[9] == (
|
||||
"char,1,45.83,58.826,656.82,674.82,117.18,117.18,135.18,12.996,"
|
||||
'18.0,12.996,,,,,,TimesNewRomanPSMT,,,"(1, 0, 0, 1, 45.83, 660.69)"'
|
||||
',,DeviceRGB,"(0, 0, 0)",,,18.0,,,,,,Y,,1,'
|
||||
',DeviceRGB,"(0, 0, 0)",,,18.0,,,,,,Y,,1,'
|
||||
)
|
||||
|
||||
def test_cli_csv_exclude(self):
|
||||
@@ -149,7 +149,7 @@ class Test(unittest.TestCase):
|
||||
|
||||
assert res.decode("utf-8").split("\r\n")[9] == (
|
||||
"char,1,45.83,58.826,656.82,674.82,117.18,117.18,135.18,12.996,"
|
||||
"18.0,12.996,,,,,,TimesNewRomanPSMT,,"
|
||||
"18.0,12.996,,,,,,TimesNewRomanPSMT,"
|
||||
',,"(0, 0, 0)",,18.0,,,,,Y,,1,'
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user