Cells of type `inlineStr` keep their text in an `is` element rather
than in `v`, so they were read as empty and dropped. openpyxl writes
every string this way.
Rich-text shared strings were read by joining the text of all their
descendants with spaces. A run boundary inside a word or before
punctuation added a space ("Hel lo", "< 100T"), and phonetic runs
(`rPh`) leaked into the text.
Both now take the text of their `t`, or of their runs' `t`,
concatenated as written, skipping phonetic runs.
The test fixture was written part by part with a Python script.
Closes #12014.
68 lines
1.9 KiB
Plaintext
68 lines
1.9 KiB
Plaintext
Pandoc
|
|
Meta { unMeta = fromList [] }
|
|
[ Header 2 ( "sheet-1" , [] , [] ) [ Str "Strings" ]
|
|
, Table
|
|
( "" , [] , [] )
|
|
(Caption Nothing [])
|
|
[ ( AlignDefault , ColWidthDefault )
|
|
, ( AlignDefault , ColWidthDefault )
|
|
]
|
|
(TableHead
|
|
( "" , [] , [] )
|
|
[ Row
|
|
( "" , [] , [] )
|
|
[ Cell
|
|
( "" , [] , [] )
|
|
AlignDefault
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain [ Str "Inline" ] ]
|
|
, Cell
|
|
( "" , [] , [] )
|
|
AlignDefault
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain [ Str "Shared" ] ]
|
|
]
|
|
])
|
|
[ TableBody
|
|
( "" , [] , [] )
|
|
(RowHeadColumns 0)
|
|
[]
|
|
[ Row
|
|
( "" , [] , [] )
|
|
[ Cell
|
|
( "" , [] , [] )
|
|
AlignDefault
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain [ Str "plain" , Space , Str "inline" ] ]
|
|
, Cell
|
|
( "" , [] , [] )
|
|
AlignDefault
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain [ Str "Hello" , Space , Str "world" ] ]
|
|
]
|
|
, Row
|
|
( "" , [] , [] )
|
|
[ Cell
|
|
( "" , [] , [] )
|
|
AlignDefault
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain [ Str "Hello" , Space , Str "world" ] ]
|
|
, Cell
|
|
( "" , [] , [] )
|
|
AlignDefault
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain
|
|
[ Str "x" , Space , Str "=" , Space , Str "1" ]
|
|
]
|
|
]
|
|
]
|
|
]
|
|
(TableFoot ( "" , [] , [] ) [])
|
|
]
|