Skip to content

Commit

Permalink
Add patches for agda.xml and dtd.xml.
Browse files Browse the repository at this point in the history
This is to work around a bug in xml-conduit:
snoyberg/xml#187
  • Loading branch information
jgm committed Jun 20, 2023
1 parent 51d6677 commit a5882aa
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion skylighting-core/xml/agda.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language[
<!DOCTYPE language [
<!ENTITY charsdelim "_;.&#34;(){}@">
<!ENTITY wordsep "(?=[&charsdelim;]|\s|$)">
]>
Expand Down
11 changes: 11 additions & 0 deletions skylighting-core/xml/agda.xml.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
diff --git a/skylighting-core/xml/agda.xml b/skylighting-core/xml/agda.xml
index 194aae5..e15777b 100644
--- a/skylighting-core/xml/agda.xml
+++ b/skylighting-core/xml/agda.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE language[
+<!DOCTYPE language [
<!ENTITY charsdelim "_;.&#34;(){}@">
<!ENTITY wordsep "(?=[&charsdelim;]|\s|$)">
]>
2 changes: 1 addition & 1 deletion skylighting-core/xml/dtd.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE language[
<!DOCTYPE language [
<!ENTITY nmtoken "[\-\w\d\.:_]+">
<!ENTITY entref "(#[0-9]+|#[xX][0-9A-Fa-f]+|&nmtoken;);">
]>
Expand Down
11 changes: 11 additions & 0 deletions skylighting-core/xml/dtd.xml.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
diff --git a/skylighting-core/xml/dtd.xml b/skylighting-core/xml/dtd.xml
index 0526efc..15c82a1 100644
--- a/skylighting-core/xml/dtd.xml
+++ b/skylighting-core/xml/dtd.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE language[
+<!DOCTYPE language [
<!ENTITY nmtoken "[\-\w\d\.:_]+">
<!ENTITY entref "(#[0-9]+|#[xX][0-9A-Fa-f]+|&nmtoken;);">
]>

0 comments on commit a5882aa

Please sign in to comment.