You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately when the templates are resolved and target_Atmosphere_Surface is replaced by the actual link, it is replaced in both lines above and the second link becomes garbage!!
I'm using the following 2 components that start with the same string (on purpose)
which produces the following template front page
Unfortunately when the templates are resolved and target_Atmosphere_Surface is replaced by the actual link, it is replaced in both lines above and the second link becomes garbage!!
This can be easily fixed in
run_C-ESM-EP.py
by adding some delimiters in the template stringsReplace
newline = '<li><a href="target_' + cesmep_module[0] + '" target="_blank">' + cesmep_module[1] + '</a></li>'
with
newline = '<li><a href="%%target_' + cesmep_module[0] + '%%" target="_blank">' + cesmep_module[1] + '</a></li>'
This will produce the following template
And the also replace
pysed(frontpage_html, 'target_' + component, url)
with
pysed(frontpage_html, '%%target_' + component + '%%', url)
WARNING! DO NOT use as delimiters characters that have a special meaning for sed. I started with '[' and ']' instead of '%%' and ran out of quota
Other strings are replaced in the template html file and could possibly use the same delimiter trick (to be safe)
The text was updated successfully, but these errors were encountered: