Skip to content

Commit 023d479

Browse files
committed
merge with master branch to get the fix across
2 parents cd8701b + 5d3d039 commit 023d479

File tree

9 files changed

+64
-10
lines changed

9 files changed

+64
-10
lines changed

Diff for: CHANGELOG.rst

+28
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,34 @@
11
Change log
22
================================================================================
33

4+
0.4.0 - unreleased
5+
--------------------------------------------------------------------------------
6+
7+
Updated
8+
********************************************************************************
9+
10+
#. Updated to use lml interface
11+
12+
13+
0.3.2 - 07.05.2017
14+
--------------------------------------------------------------------------------
15+
16+
Updated
17+
********************************************************************************
18+
19+
#. issue `#2 <https://github.com/pyexcel/pyexcel-odsr/issues/2>`_, not all texts
20+
in a multi-node cell were extracted.
21+
22+
0.3.1 - 13.04.2017
23+
--------------------------------------------------------------------------------
24+
25+
Updated
26+
********************************************************************************
27+
28+
#. issue `#1 <https://github.com/pyexcel/pyexcel-odsr/issues/1>`_, PT288H00M00S
29+
is valid duration
30+
31+
432
0.3.0 - 02.02.2017
533
--------------------------------------------------------------------------------
634

Diff for: README.rst

+14-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
pyexcel-odsr - Let you focus on data, instead of ods format
33
================================================================================
44

5-
.. image:: https://api.travis-ci.org/pyexcel/pyexcel-odsr.png
6-
:target: http://travis-ci.org/pyexcel/pyexcel-odsr
5+
.. image:: https://raw.githubusercontent.com/pyexcel/pyexcel.github.io/master/images/patreon.png
6+
:target: https://www.patreon.com/pyexcel
7+
8+
.. image:: https://api.travis-ci.org/pyexcel/pyexcel-odsr.svg?branch=master
9+
:target: http://travis-ci.org/pyexcel/pyexcel-odsr
710

811
.. image:: https://codecov.io/github/pyexcel/pyexcel-odsr/coverage.png
9-
:target: https://codecov.io/github/pyexcel/pyexcel-odsr
12+
:target: https://codecov.io/github/pyexcel/pyexcel-odsr
1013

1114
**pyexcel-odsr** is a specialized ods reader based on tailored ods reader from
1215
`messytables <https://github.com/okfn/messytables>`_.
@@ -35,7 +38,7 @@ or clone it and install it:
3538

3639
.. code-block:: bash
3740
38-
$ git clone http://github.com/pyexcel/pyexcel-odsr.git
41+
$ git clone https://github.com/pyexcel/pyexcel-odsr.git
3942
$ cd pyexcel-odsr
4043
$ python setup.py install
4144
@@ -310,3 +313,10 @@ This library is based on the ods of messytables, Open Knowledge Foundation Ltd.
310313
>>> import os
311314
>>> os.unlink("your_file.ods")
312315
>>> os.unlink("another_file.ods")
316+
317+
Support the project
318+
================================================================================
319+
320+
If your company has embedded pyexcel and its components into a revenue generating
321+
product, please `support me on patreon <https://www.patreon.com/pyexcel>`_ to
322+
maintain the project and develop it further.

Diff for: docs/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
project = u'pyexcel-odsr'
2323
copyright = u'2015-2017 Onni Software Ltd.'
24-
version = '0.3.1'
24+
version = '0.3.2'
2525
release = '0.4.0'
2626
exclude_patterns = []
2727
pygments_style = 'sphinx'

Diff for: pyexcel_odsr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ overrides: "pyexcel.yaml"
22
name: "pyexcel-odsr"
33
nick_name: odsr
44
version: 0.4.0
5-
release: 0.3.1
5+
release: 0.3.2
66
file_type: ods
77
dependencies:
88
- pyexcel-io>=0.4.0

Diff for: pyexcel_odsr/messyods.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,8 @@ def _read_text_cell(element):
193193
children = element.getchildren()
194194
text_content = []
195195
for child in children:
196-
if child.text:
197-
text_content.append(child.text)
198-
else:
199-
text_content.append('')
196+
text = "".join([x for x in child.itertext()])
197+
text_content.append(text)
200198
if len(text_content) > 0:
201199
cell_value = '\n'.join(text_content)
202200
else:

Diff for: setup.cfg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[metadata]
2+
description-file = README.rst
3+
[bdist_wheel]
4+
universal = 1

Diff for: setup.py

+4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77

88
NAME = 'pyexcel-odsr'
99
AUTHOR = 'C.W.'
10+
<<<<<<< HEAD
1011
VERSION = '0.4.0'
12+
=======
13+
VERSION = '0.3.2'
14+
>>>>>>> master
1115
EMAIL = 'wangc_2011 (at) hotmail.com'
1216
LICENSE = 'New BSD'
1317
DESCRIPTION = (

Diff for: tests/fixtures/multinode-in-a-p.ods

10.8 KB
Binary file not shown.

Diff for: tests/test_bug_fixes.py

+10
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,13 @@ def test_issue_1_error():
7474
from pyexcel_odsr.converter import time_value
7575
result = time_value('PT1111')
7676
eq_(result, None)
77+
<<<<<<< HEAD
78+
=======
79+
80+
81+
def test_issue_2():
82+
test_file = "multinode-in-a-p.ods"
83+
data = get_data(os.path.join("tests", "fixtures", test_file),
84+
skip_empty_rows=True, library='pyexcel-odsr')
85+
eq_(data['product.template'][1][1], 'PRODUCT NAME PMP')
86+
>>>>>>> master

0 commit comments

Comments
 (0)