[PATCH] Workaround for flys/issue1675: Guarantee that the years are always between 0 and 9999 in macro 'minfo-heights'
Wald Commits
scm-commit at wald.intevation.org
Tue Nov 12 15:37:42 CET 2013
# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1384267058 -3600
# Node ID caac7320874552543a8b07cab3245da3a63c32e3
# Parent 39eb0b399995c57c91241efbf1a686897b45afa9
Workaround for flys/issue1675: Guarantee that the years are always between 0 and 9999 in macro 'minfo-heights'.
diff -r 39eb0b399995 -r caac73208745 artifacts/doc/conf/meta-data.xml
--- a/artifacts/doc/conf/meta-data.xml Fri Nov 08 18:26:55 2013 +0100
+++ b/artifacts/doc/conf/meta-data.xml Tue Nov 12 15:37:38 2013 +0100
@@ -1615,14 +1615,16 @@
dc:find-all(
'\d{4}',
dc:replace-all(
- $diffids, '[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}', '')))"
+ concat($diffids, 'X0000'),
+ '[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}', '')))"
type="number"/>
<dc:variable name="year_to" expr="
dc:max-number(
dc:find-all(
'\d{4}',
dc:replace-all(
- $diffids, '[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}', '')))"
+ concat($diffids, 'X9999'),
+ '[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}', '')))"
type="number"/>
</dc:when>
<dc:otherwise>
More information about the Dive4elements-commits
mailing list