On 27.02.2018 14:57, Samuel Thibault wrote:
Hello,
Miklos Vajna, on mar. 27 févr. 2018 14:08:33 +0100, wrote:
On Thu, Feb 22, 2018 at 05:22:26PM +0100, Samuel Thibault <sthibault@hypra.fr> wrote:
An issue with these is that they do not keep source line numbers of the
nodes. That's really concerning for providing useful information to
the programmer.
Does
<https://stackoverflow.com/questions/6949395/is-there-a-way-to-get-a-line-number-from-an-elementtree-element/36430270#36430270>
help?
It's interesting. One frightening thing however is "we assume the
default XML parser which is expat", and the _start_list (which should
actually be _start with python3) and _end hooks are not even documented.
When the python interpreter is provided by the system you wouldn't know
what would work. We could put something which hopefully works because
the hooks happen to have the proper names, or at worse not do anything
and just not print line numbers. I don't know what LO maintainers would
be fine with maintaining :)
i'm wondering, not having looked at your tool: if it doesn't print line
numbers, is it easy to figure out which XML element it warns about?
would the element contain some unique text or have a unique identifying
attribute?
line number is just one way of doing it, if there's an equivalent way to
find it with search in the text editor it should be fine, these UI files
aren't that huge...
Context
Re: Implementing accessibility non-regression check tool · Khaled Hosny
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.