-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to show occurrences of empty elements? #224
Comments
The problem here is that this error occurs when the logical tag is empty, that is not associated with any content on the page as all. The only reasonable hint would be to show the location of the previous and next tags in the structure tree. One other option would be to provide the path to this empty element in the structure tree in the additional info of the error message, something like: |
Both options you mention would be useful:
I notice that the PDF checker is used by both types of user, so perhaps we should implement both... |
The path is already available in the context of the error message. For example, the context for the second empty span is:
Which translates to the following path in the Structure tree: or in plain words one would need to go for
And this particular |
The latest dev version of the error preview has a new right pane showing the structure tree of the document. In particular, it highlights empty structure elements and allows to navigate through the sibling elements, which will also be highlighted on the page giving the hint where exactly this empty structure element is located in the document. |
Test document 15 fails the following three errors concerning empty elements:
The GUI does not pinpoint the occurrences of these errors in the document, however.
Is it possible to show (at least approximately) where errors about empty elements occur in the document?
The text was updated successfully, but these errors were encountered: