https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35104

--- Comment #102 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 194167
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194167&action=edit
Bug 35104: Add context snippet with caret pointer to nonxml_stripped error
messages

Each per-character error message now includes a two-line snippet showing
up to 30 characters of surrounding context, with the offending character
replaced by a [U+XXXX] marker and a caret (^) aligned beneath it:

    245$a: invalid char value 31 (U+001F) at position 10
        Hello[U+001F]World
             ^

Adds _context_snippet() helper and refactors _find_nonxml_chars() to use
index-based iteration so the char array can be passed directly to the
snippet helper without re-splitting.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to