[comment] Translate writer test 'Checktable.java' to Python
Miklos Vajna
vmiklos at suse.cz
Wed Aug 7 00:18:44 PDT 2013
On Wed, Aug 07, 2013 at 09:03:12AM +0200, Xiaoli Duan <duan19002009 at gmail.com> wrote:
> I added multi line comment with triple quoted to Writer python test file
> and then run test.
> I sent you the file 'check_table.py' (dir path: /sw/qa/python) and test
> results in file 'python_fail'.
> I my opinion LO Python should handle that strings but something is wrong.
> Please see:
> http://stackoverflow.com/questions/7696924/multiline-comments-in-python
>
> ...
>
> # get anchor
> xAnchor = xTable.getAnchor()
> '''
> check all properties on the anchor - shouldn't crash despite
> pointing to a non-SwTxtNode
> '''
> xPropsInfo = xAnchor.getPropertySetInfo()
Looks like you got indenting wrong here: use the same amount of spaces
before ''' as you use for xAnchor / xPropsInfo, that should help.
Miklos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130807/d4609b52/attachment.pgp>
More information about the LibreOffice
mailing list