From d826cb9f010dbd706d54a4e01357ff6b3eadf677 Mon Sep 17 00:00:00 2001 From: Kevin Brubeck Unhammer Date: Wed, 18 Sep 2024 15:53:00 +0200 Subject: [PATCH] Allow html hyperlinks with href in errors.xml --- src/errors.dtd | 9 +++++++-- src/errors.rnc | 7 +++++-- test/suggest/errors.xml | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/errors.dtd b/src/errors.dtd index 783467d..22105c0 100644 --- a/src/errors.dtd +++ b/src/errors.dtd @@ -1,4 +1,4 @@ - + @@ -41,7 +41,7 @@ - + + + + diff --git a/src/errors.rnc b/src/errors.rnc index b00ae4b..2dd6c8f 100644 --- a/src/errors.rnc +++ b/src/errors.rnc @@ -1,5 +1,5 @@ # THIS IS A GENERATED FILE, DO NOT EDIT! -# Copyright (C) 2016-2019, Kevin Brubeck Unhammer +# Copyright (C) 2016-2024, Kevin Brubeck Unhammer # This program is free software: you can redistribute it and/or modify @@ -48,7 +48,7 @@ attlist.error &= header = element header { attlist.header, (title | references)+ } attlist.header &= empty -Text = (text | em)* +Text = (text | em | a)* title = element title { attlist.title, Text } attlist.title &= attribute xml:lang { text } @@ -73,4 +73,7 @@ attlist.description &= attribute xml:lang { text } em = element em { attlist.em, text } attlist.em &= empty +a = element a { attlist.a, text } +attlist.a &= attribute href { text } + start = errors diff --git a/test/suggest/errors.xml b/test/suggest/errors.xml index f120d33..cf473dd 100644 --- a/test/suggest/errors.xml +++ b/test/suggest/errors.xml @@ -28,7 +28,7 @@ Čállinmeattáhus - The word "$1" exists in the dictionary, but means something different in this context. + The word "$1" exists in the dictionary, but means something different in this context. "$1" maŋis galggašii leat blah