Skip to content

Commit

Permalink
output builtin and configured entity refs in shrinked text
Browse files Browse the repository at this point in the history
This fixes everything in issue #5 which is not about parsing internal
entities from the DTD, see #4.
  • Loading branch information
lueck committed Sep 6, 2022
1 parent 6a1536d commit 55b7669
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions testsuite/Test/StandOff/ShrinkedText.hs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,16 @@ test_charrefMappedChars = do
validateMappedCharacters "charref"


test_entityrefShrinkedTXT = do
validateShrinkedTXT "entityref"

test_entityrefOffsetMapping = do
validateOffsetMapping "entityref"

test_entityrefMappedEntitys = do
validateMappedCharacters "entityref"


test_advancedShrinkedTXT = do
validateShrinkedTXT "advanced"

Expand Down
Binary file not shown.
3 changes: 3 additions & 0 deletions testsuite/annotations-shrinked/entityref.shrinked.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Lorem ipsum dolor sit am&, cons&&ur
sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
labore & dolore magna aliquyam erat, sed diam voluptua.

0 comments on commit 55b7669

Please sign in to comment.