Skip to content

Error location should be easy to find / counting CFI #448

@typopaul

Description

@typopaul

Is there an easy way to find a location that is given with the CFI?
Currently I am desperatly looking for the cause of the error/warning below. But the message does not help much.
I know in which file the error is in. But after that it is counting elements and trying to find the right location.

So my general question is:
Can the error messages include a line or a text snippet that is actually helping to find the error without interpreting the CFI?

 "Teil B"

text/008_400699_003.xhtml#epubcfi(/4/2/6/10)

Snippet (I added some line breaks to make the non-helpful information easier to see):
<section xmlns="http://www.w3.org/1999/xhtml" role="doc-chapter" xmlns:epub="http://www.idpf.org/2007/ops" epub:type="chapter"> <!--##--> 
<section xmlns="http://www.w3.org/1999/xhtml" role="doc-chapter" xmlns:epub="http://www.idpf.org/2007/ops" epub:type="chapter"> <!--##--> 
<section xmlns="http://www.w3.org/1999/xhtml" role="doc-chapter" xmlns:epub="http://www.idpf.org/2007/ops" epub:type="chapter"> <!--##--> 
<section xmlns="http://www.w3.org/1999/xhtml" role="doc-chapter" xmlns:epub="http://www.idpf.org/2007/ops" epub:type="chapter"> <!--##--> 
<section xmlns="http://www.w3.org/1999/xhtml" role="doc-chapter" xmlns:epub="http://www.idpf.org/2007/ops" epub:type="chapter"> <!--##--> 
<section xmlns="http://www.w3.org/1999/xhtml" role="doc-chapter" xmlns:epub="http://www.idpf.org/2007/ops" epub:type="chapter"> <!--##--> 
<section xmlns="http://www.w3.org/1999/xhtml" role="doc-chapter" xmlns:epub="http://www.idpf.org/2007/ops" epub:type="chapter">

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions