Skip to content

Commit

Permalink
restrict scope to prevent that markup is accidentally not processed
Browse files Browse the repository at this point in the history
  • Loading branch information
mkraetke committed Mar 7, 2024
1 parent d185ad4 commit ca4b36d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conf/conf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -719,10 +719,10 @@
<!-- remove leading whitespace in footnotes -->

<template context="dbk:footnote/dbk:para[1]//text()[preceding-sibling::node()[1][@role eq 'hub:identifier']][starts-with(., ' ')]
|dbk:footnote/dbk:para[1]//dbk:phrase[preceding-sibling::node()[1][@role eq 'hub:identifier']][starts-with(., ' ')]
|dbk:footnote/dbk:para[1]//dbk:phrase[preceding-sibling::node()[1][@role eq 'hub:identifier']][starts-with(., ' ')]/text()[1]
|dbk:footnote/dbk:para[1]/dbk:phrase[preceding-sibling::*[1][@role eq 'hub:identifier']]
[preceding-sibling::node()[1][not(normalize-space())]]
[starts-with(., ' ')]">
[starts-with(., ' ')]/text()[1]">
<rule>
<text select="replace(string-join(xml2tex:utf2tex(.., ., $charmap, (), $texregex), ''), '^\s', '')"/>
</rule>
Expand Down

0 comments on commit ca4b36d

Please sign in to comment.