File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 11// Preprocessor for since/until roles in pdf backend (in html5 backed this is handled using CSS)
22preprocessor {
33 document, reader ->
4- if (document. options[ ' backend ' ] != ' pdf' ) {
4+ if (! document. basebackend( ' pdf' ) ) {
55 println ' skipping since/until preprocessor for non-PDF'
66 return
77 }
@@ -26,4 +26,12 @@ preprocessor {
2626 }
2727 }
2828 reader. restoreLines(replacement)
29+ }
30+ docinfo_processor {
31+ document -> {
32+ if (! document. basebackend(' html' ) || ! document. hasAttribute(' fb-canonical-html' )) {
33+ return
34+ }
35+ return " <link rel=\" canonical\" href=\" ${ document.getAttribute('fb-canonical-html')} \" />"
36+ }
2937}
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ Roman Rokytskyy; Mark Rotteveel
2626:jaybird-template-version: {jaybird5-template-version}
2727:jna-version: 5.14.0
2828:min-support-firebird: 2.5
29+ :fb-canonical-html: https://firebirdsql.github.io/jaybird-manual/jaybird_manual.html
2930:is-snapshot:
3031
3132ifdef::is-snapshot[]
You can’t perform that action at this time.
0 commit comments