-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#364 Treat footnotes inside footnotes gracefully.
By processing them as non-footnote content.
- Loading branch information
Showing
6 changed files
with
97 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+4.16 KB
...es/src/main/resources/visualtest/expected/footnote/issue-364-footnote-inside-footnote.pdf
Binary file not shown.
53 changes: 53 additions & 0 deletions
53
...mples/src/main/resources/visualtest/html/footnote/issue-364-footnote-inside-footnote.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<html> | ||
<head> | ||
<style> | ||
@page { | ||
size: 300px 300px; | ||
} | ||
html { | ||
orphans: 0; | ||
widows: 0; | ||
} | ||
body { | ||
font-size: 20px; | ||
} | ||
.footnote { | ||
color: green; | ||
float: footnote; | ||
} | ||
::footnote-call { | ||
counter-increment: footnote; | ||
content: " [fn " counter(footnote) "] "; | ||
} | ||
::footnote-marker { | ||
content: "fn. " counter(footnote); | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
This is some in-flow content. | ||
|
||
<div class="footnote"> | ||
This is a footnote with a footnote inside. | ||
<div class="footnote"> | ||
This is the inner footnote. | ||
</div> | ||
And another: | ||
<div class="footnote"> | ||
Another fn inside fn. | ||
<div class="footnote"> | ||
Grandchild footnote in footnote. | ||
</div> | ||
</div> | ||
</div> | ||
|
||
Even more in-flow content. | ||
|
||
<div class="footnote"> | ||
Second footnote. | ||
</div> | ||
|
||
End of document. | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters