Skip to content

Commit

Permalink
rendre un élément vide plutôt que du texte vide
Browse files Browse the repository at this point in the history
  • Loading branch information
emchateau committed Jun 29, 2020
1 parent 0fa88de commit 2c9ffa7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mappings/tei2html.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ declare function head($node as element(tei:head)+, $options as map(*)) as elemen
<strong>{ passthru($node, $options) }</strong>
else if ($node/parent::tei:table) then
<th>{ passthru($node, $options) }</th>
else passthru($node, $options)
else <title>{passthru($node, $options)}</title>
};

declare function p($node as element(tei:p)+, $options as map(*)) {
Expand Down Expand Up @@ -193,11 +193,11 @@ declare function hi($node as element(tei:hi)+, $options as map(*)) {
declare function idno($node as element(tei:idno), $options as map(*)) {
switch ($node)
case ($node[@type='todo']) return <em>gallica</em>
default return ''
default return ()
};

declare function fw($node as element(tei:fw), $options as map(*)) {
if ($node/@type = 'runningHead') then ''
if ($node/@type = 'runningHead') then ()
else (<span class="pb" stycolor="red">{ passthru($node, $options) }</span>, text{' '})
};

Expand Down

0 comments on commit 2c9ffa7

Please sign in to comment.